diff --git a/core/modules/book/tests/src/FunctionalJavascript/BookJavascriptTest.php b/core/modules/book/tests/src/FunctionalJavascript/BookJavascriptTest.php index 1af143c..2f53919 100644 --- a/core/modules/book/tests/src/FunctionalJavascript/BookJavascriptTest.php +++ b/core/modules/book/tests/src/FunctionalJavascript/BookJavascriptTest.php @@ -3,7 +3,6 @@ namespace Drupal\Tests\book\FunctionalJavascript; use Behat\Mink\Exception\ExpectationException; -use Drupal\Component\Render\FormattableMarkup; use Drupal\FunctionalJavascriptTests\JavascriptTestBase; use Drupal\node\Entity\Node; @@ -101,7 +100,7 @@ public function testBookOrdering() { $this->assertFalse($weight_select2->isVisible()); $this->submitForm([], 'Save book pages'); - $this->assertSession()->pageTextContains(new FormattableMarkup('Updated book @book.', ['@book' => $book->getTitle()])); + $this->assertSession()->pageTextContains("Updated book {$book->getTitle()}."); // Check again that '2nd page' is on top after form submit. $this->assertOrderInPage(['2nd page', '1st page']);