diff --git a/tests/src/Functional/FivestarTest.php b/tests/src/Functional/FivestarTest.php index 7f69f0b..c87a49c 100644 --- a/tests/src/Functional/FivestarTest.php +++ b/tests/src/Functional/FivestarTest.php @@ -142,7 +142,7 @@ class FivestarTest extends BrowserTestBase { // Rate the test_node_type. $this->drupalLogin($this->voterUser); $this->drupalGet('node/' . $node->id()); - $this->assertRaw('No votes yet', 'Fivestar field has no votes.'); + $this->assertSession()->responseContains('No votes yet'); $this->assertEmpty($this->xpath("//form[contains(@class, 'fivestar-widget')]")); // Check if node with attached fivestar field can be save.