Loading tests/src/Functional/BasicBlogTest.php +5 −5 Original line number Diff line number Diff line Loading @@ -45,8 +45,8 @@ class BasicBlogTest extends BlogTestBase { public function testPersonalBlogTitle() { $this->drupalLogin($this->regularUser); $this->drupalGet('blog/' . $this->blogger1->id()); $this->assertResponse(200); $this->assertTitle($this->blogger1->getDisplayName() . "'s blog | Drupal"); $this->assertSession()->statusCodeEquals(200); $this->assertSession()->titleEquals($this->blogger1->getDisplayName() . "'s blog | Drupal"); } /** Loading @@ -55,9 +55,9 @@ class BasicBlogTest extends BlogTestBase { public function testBlogPageNoEntries() { $this->drupalLogin($this->regularUser); $this->drupalGet('blog/' . $this->bloggerNoEntries->id()); $this->assertResponse(200); $this->assertTitle($this->bloggerNoEntries->getDisplayName() . "'s blog | Drupal"); $this->assertText($this->bloggerNoEntries->getDisplayName() . ' has not created any blog entries.'); $this->assertSession()->statusCodeEquals(200); $this->assertSession()->titleEquals($this->bloggerNoEntries->getDisplayName() . "'s blog | Drupal"); $this->assertSession()->pageTextContains($this->bloggerNoEntries->getDisplayName() . ' has not created any blog entries.'); } /** Loading tests/src/Functional/EmptyBlogTest.php +2 −2 Original line number Diff line number Diff line Loading @@ -47,7 +47,7 @@ class EmptyBlogTest extends BrowserTestBase { public function testAllBlogEmptyLists() { $this->drupalLogin($this->bloggerNoEntries); $this->drupalGet('blog'); $this->assertText('No blog entries have been created.'); $this->assertSession()->pageTextContains('No blog entries have been created.'); } /** Loading @@ -56,7 +56,7 @@ class EmptyBlogTest extends BrowserTestBase { public function testEmptyPersonalBlog() { $this->drupalLogin($this->bloggerNoEntries); $this->drupalGet('blog/' . $this->bloggerNoEntries->id()); $this->assertText($this->bloggerNoEntries->getDisplayName() . ' has not created any blog entries.'); $this->assertSession()->pageTextContains($this->bloggerNoEntries->getDisplayName() . ' has not created any blog entries.'); } } Loading
tests/src/Functional/BasicBlogTest.php +5 −5 Original line number Diff line number Diff line Loading @@ -45,8 +45,8 @@ class BasicBlogTest extends BlogTestBase { public function testPersonalBlogTitle() { $this->drupalLogin($this->regularUser); $this->drupalGet('blog/' . $this->blogger1->id()); $this->assertResponse(200); $this->assertTitle($this->blogger1->getDisplayName() . "'s blog | Drupal"); $this->assertSession()->statusCodeEquals(200); $this->assertSession()->titleEquals($this->blogger1->getDisplayName() . "'s blog | Drupal"); } /** Loading @@ -55,9 +55,9 @@ class BasicBlogTest extends BlogTestBase { public function testBlogPageNoEntries() { $this->drupalLogin($this->regularUser); $this->drupalGet('blog/' . $this->bloggerNoEntries->id()); $this->assertResponse(200); $this->assertTitle($this->bloggerNoEntries->getDisplayName() . "'s blog | Drupal"); $this->assertText($this->bloggerNoEntries->getDisplayName() . ' has not created any blog entries.'); $this->assertSession()->statusCodeEquals(200); $this->assertSession()->titleEquals($this->bloggerNoEntries->getDisplayName() . "'s blog | Drupal"); $this->assertSession()->pageTextContains($this->bloggerNoEntries->getDisplayName() . ' has not created any blog entries.'); } /** Loading
tests/src/Functional/EmptyBlogTest.php +2 −2 Original line number Diff line number Diff line Loading @@ -47,7 +47,7 @@ class EmptyBlogTest extends BrowserTestBase { public function testAllBlogEmptyLists() { $this->drupalLogin($this->bloggerNoEntries); $this->drupalGet('blog'); $this->assertText('No blog entries have been created.'); $this->assertSession()->pageTextContains('No blog entries have been created.'); } /** Loading @@ -56,7 +56,7 @@ class EmptyBlogTest extends BrowserTestBase { public function testEmptyPersonalBlog() { $this->drupalLogin($this->bloggerNoEntries); $this->drupalGet('blog/' . $this->bloggerNoEntries->id()); $this->assertText($this->bloggerNoEntries->getDisplayName() . ' has not created any blog entries.'); $this->assertSession()->pageTextContains($this->bloggerNoEntries->getDisplayName() . ' has not created any blog entries.'); } }