You are here

public function EmptyBlogTest::testEmptyPersonalBlog in Blog 8.2

Same name and namespace in other branches
  1. 3.x tests/src/Functional/EmptyBlogTest.php \Drupal\Tests\blog\Functional\EmptyBlogTest::testEmptyPersonalBlog()

Test empty personal blog.

File

tests/src/Functional/EmptyBlogTest.php, line 56

Class

EmptyBlogTest
Test for empty blogs.

Namespace

Drupal\Tests\blog\Functional

Code

public function testEmptyPersonalBlog() {
  $this
    ->drupalLogin($this->bloggerNoEntries);
  $this
    ->drupalGet('blog/' . $this->bloggerNoEntries
    ->id());
  $this
    ->assertText($this->bloggerNoEntries
    ->getDisplayName() . ' has not created any blog entries.');
}