Commit d667f417 authored by git's avatar git Committed by Kurucz István
Browse files

Issue #3286300 by Project Update Bot: Automated Drupal 10 compatibility fixes

parent da4d1558
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -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");
  }

  /**
@@ -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.');
  }

  /**
+2 −2
Original line number Diff line number Diff line
@@ -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.');
  }

  /**
@@ -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.');
  }

}