public function MyBlogLinkTest::testMyBlogLinkWithRegularUser in Blog 3.x
Same name and namespace in other branches
- 8.2 tests/src/Functional/MyBlogLinkTest.php \Drupal\Tests\blog\Functional\MyBlogLinkTest::testMyBlogLinkWithRegularUser()
Test "My blog" link with regular user.
File
- tests/
src/ Functional/ MyBlogLinkTest.php, line 45
Class
- MyBlogLinkTest
- Link "My blog" and "View recent blog entries" test for blog module.
Namespace
Drupal\Tests\blog\FunctionalCode
public function testMyBlogLinkWithRegularUser() {
$this
->drupalLogin($this->regularUser);
$this
->assertLink('My blog');
$this
->assertLinkByHref('/blog/' . $this->regularUser
->id());
}