diff --git a/core/modules/simpletest/tests/src/Functional/BrowserTestBaseTest.php b/core/modules/simpletest/tests/src/Functional/BrowserTestBaseTest.php index a77c1e9..14de8fe 100644 --- a/core/modules/simpletest/tests/src/Functional/BrowserTestBaseTest.php +++ b/core/modules/simpletest/tests/src/Functional/BrowserTestBaseTest.php @@ -35,8 +35,8 @@ public function testGoTo() { // Check that returned plain text is correct. $text = $this->getTextContent(); - $this->assertTrue(strpos($text, 'Test page text.') !== FALSE); - $this->assertTrue(strpos($text, '') === FALSE); + $this->assertNotContains('Test page text.', $text); + $this->assertContains('', $text); // Response includes cache tags that we can assert. $this->assertSession()->responseHeaderEquals('X-Drupal-Cache-Tags', 'rendered');