diff --git a/core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php b/core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php index ee58657b67..0d3c3bf95c 100644 --- a/core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php +++ b/core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php @@ -297,12 +297,12 @@ public function testOrderInPage() { $this->drupalGet('test-order-in-page'); // Check that asserting order in page markup and page works. - $this->assertSession()->orderInPageHtml(['item3', 'item1', 'item2']); + $this->assertSession()->orderInPageContent(['item3', 'item1', 'item2']); $this->assertSession()->orderInPageText(['item3', 'item2', 'item1']); // Check that passing non-existent search strings throws an exception. $this->setExpectedException(ElementNotFoundException::class, "Cannot find item(s): 'item5', 'item8'."); - $this->assertSession()->orderInPageHtml(['item5', 'item1', 'item8']); + $this->assertSession()->orderInPageContent(['item5', 'item1', 'item8']); } } diff --git a/core/tests/Drupal/Tests/WebAssert.php b/core/tests/Drupal/Tests/WebAssert.php index b9a5432854..4523ef3c17 100644 --- a/core/tests/Drupal/Tests/WebAssert.php +++ b/core/tests/Drupal/Tests/WebAssert.php @@ -507,7 +507,7 @@ public function hiddenFieldValueNotEquals($field, $value, TraversableElement $co * @param string[] $items * An ordered list of strings. */ - public function orderInPageHtml(array $items) { + public function orderInPageContent(array $items) { $this->orderInPageHelper($items, $this->session->getPage()->getHtml()); } @@ -532,7 +532,7 @@ public function orderInPageText(array $items) { * @throws \Behat\Mink\Exception\ElementNotFoundException * When one or more of passed items are not found. * - * @see \Drupal\Tests\WebAssert::orderInPageHtml() + * @see \Drupal\Tests\WebAssert::orderInPageContent() * @see \Drupal\Tests\WebAssert::orderInPageText() */ protected function orderInPageHelper(array $items, $string) {