diff --git a/tests/src/FunctionalJavascript/LinkitFormatAdminTest.php b/tests/src/FunctionalJavascript/LinkitFormatAdminTest.php index 39d4d6e..eb4c268 100644 --- a/tests/src/FunctionalJavascript/LinkitFormatAdminTest.php +++ b/tests/src/FunctionalJavascript/LinkitFormatAdminTest.php @@ -16,7 +16,7 @@ class LinkitFormatAdminTest extends WebDriverTestBase { * * @var array */ - public static $modules = ['editor', 'filter', 'linkit']; + public static $modules = ['editor', 'filter', 'linkit', 'path_alias']; /** * {@inheritdoc} diff --git a/tests/src/Kernel/Matchers/NodeMatcherTest.php b/tests/src/Kernel/Matchers/NodeMatcherTest.php index bbc0961..80fd12f 100644 --- a/tests/src/Kernel/Matchers/NodeMatcherTest.php +++ b/tests/src/Kernel/Matchers/NodeMatcherTest.php @@ -231,7 +231,7 @@ class NodeMatcherTest extends LinkitKernelTestBase { $translated_url = $translation->toUrl()->setAbsolute()->toString(); // Make sure the translated URL contains our prefix. - $this->assertContains('/' . $langcode . '/', $translated_url); + $this->assertStringContainsString('/' . $langcode . '/', (string) $translated_url); $suggestions = $plugin->execute($translated_url); $this->assertEquals(1, count($suggestions->getSuggestions())); }