public function EmptyBlogTest::testEmptyPersonalBlog in Blog 8.2
Same name and namespace in other branches
- 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\FunctionalCode
public function testEmptyPersonalBlog() {
$this
->drupalLogin($this->bloggerNoEntries);
$this
->drupalGet('blog/' . $this->bloggerNoEntries
->id());
$this
->assertText($this->bloggerNoEntries
->getDisplayName() . ' has not created any blog entries.');
}