You are here

public function BasicBlogTest::testPersonalBlogTitle in Blog 3.x

Same name and namespace in other branches
  1. 8.2 tests/src/Functional/BasicBlogTest.php \Drupal\Tests\blog\Functional\BasicBlogTest::testPersonalBlogTitle()

Test personal blog title.

File

tests/src/Functional/BasicBlogTest.php, line 45

Class

BasicBlogTest
Test blog functionality.

Namespace

Drupal\Tests\blog\Functional

Code

public function testPersonalBlogTitle() {
  $this
    ->drupalLogin($this->regularUser);
  $this
    ->drupalGet('blog/' . $this->blogger1
    ->id());
  $this
    ->assertResponse(200);
  $this
    ->assertTitle($this->blogger1
    ->getDisplayName() . "'s blog | Drupal");
}