You are here

public function MyBlogLinkTest::testMyBlogLinkWithRegularUser in Blog 8.2

Same name and namespace in other branches
  1. 3.x 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\Functional

Code

public function testMyBlogLinkWithRegularUser() {
  $this
    ->drupalLogin($this->regularUser);
  $this
    ->assertLink('My blog');
  $this
    ->assertLinkByHref('/blog/' . $this->regularUser
    ->id());
}