diff --git a/tests/src/Functional/ExamplesTest.php b/tests/src/Functional/ExamplesTest.php index 66c35a0..c3536b8 100644 --- a/tests/src/Functional/ExamplesTest.php +++ b/tests/src/Functional/ExamplesTest.php @@ -48,8 +48,10 @@ class ExamplesTest extends ExamplesBrowserTestBase { \count($this->xpath('//nav/div/div[@data-toolbar-tray="toolbar-item-examples-tray"]')), 'Found the Examples toolbar tray.' ); + // Assert that PHPUnit link does not appears in the tray. - $assert->linkNotExists('PHPUnit example'); + $phpunit_link = 'PHPUnit Example'; + $assert->linkNotExists($phpunit_link); $assert->pageTextNotContains('
  • '); // Install phpunit_example and see if it appears in the toolbar. We use @@ -60,7 +62,7 @@ class ExamplesTest extends ExamplesBrowserTestBase { // Verify that PHPUnit appears in the tray. $this->drupalGet(''); - $assert->linkExists('PHPUnit example'); + $assert->linkExists($phpunit_link); // Assert that the PHPUnit tray item is present. $this->assertEquals( 1,