protected function MyBlogLinkTest::setUp in Blog 3.x
Same name and namespace in other branches
- 8.2 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\FunctionalCode
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',
]);
}