You are here

public function MyBlogLinkTest::testPersonalBlogLink in Blog 8.2

Test "Personal blog link" on user profile page.

File

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

Class

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

Namespace

Drupal\Tests\blog\Functional

Code

public function testPersonalBlogLink() {
  $this
    ->drupalLogin($this->blogger1);
  $this
    ->drupalGet('user/' . $this->blogger1
    ->id());
  $this
    ->assertLink('View recent blog entries');
  $this
    ->assertLinkByHref('/blog/' . $this->blogger1
    ->id());
}