BlockContentPageViewTest.php in Drupal 8
File
core/modules/block_content/tests/src/Functional/BlockContentPageViewTest.php
View source
<?php
namespace Drupal\Tests\block_content\Functional;
class BlockContentPageViewTest extends BlockContentTestBase {
public static $modules = [
'block_content_test',
];
protected $defaultTheme = 'classy';
public function testPageEdit() {
$this
->drupalLogin($this->adminUser);
$block = $this
->createBlockContent();
$this
->drupalGet('block-content/' . $block
->id());
$this
->assertSession()
->statusCodeEquals(200);
$this
->drupalGet('<front>');
$this
->assertRaw(t('This block is broken or missing. You may be missing content or you might need to enable the original module.'));
}
}