You are here

protected function MyBlogLinkTest::setUp in Blog 8.2

Same name and namespace in other branches
  1. 3.x tests/src/Functional/MyBlogLinkTest.php \Drupal\Tests\blog\Functional\MyBlogLinkTest::setUp()

Overrides BlogTestBase::setUp

File

tests/src/Functional/MyBlogLinkTest.php, line 34

Class

MyBlogLinkTest
Link "My blog" and "View recent blog entries" test for blog module.

Namespace

Drupal\Tests\blog\Functional

Code

protected function setUp() : void {
  parent::setUp();

  // Create regular user.
  $this->regularUser = $this
    ->drupalCreateUser([
    'create article content',
    'administer user display',
  ]);

  // Add account_menu block.
  $this
    ->placeBlock('system_menu_block:account', [
    'region' => 'content',
  ]);
}