diff --git a/core/tests/Drupal/FunctionalTests/Routing/LazyRouteProviderInstallTest.php b/core/tests/Drupal/FunctionalTests/Routing/LazyRouteProviderInstallTest.php index bec7661a09..bc01dc288a 100644 --- a/core/tests/Drupal/FunctionalTests/Routing/LazyRouteProviderInstallTest.php +++ b/core/tests/Drupal/FunctionalTests/Routing/LazyRouteProviderInstallTest.php @@ -21,8 +21,8 @@ public function testInstallation() { $this->container->get('module_installer')->install(['router_test']); // Note that on DrupalCI the test site is installed in a sub directory so // we cannot use ::assertEquals(). - $this->assertRegExp('/\/admin$/', \Drupal::state()->get('Drupal\lazy_route_provider_install_test\PluginManager')); - $this->assertRegExp('/\/router_test\/test1$/', \Drupal::state()->get('router_test_install')); + $this->assertStringEndsWith('/admin', \Drupal::state()->get('Drupal\lazy_route_provider_install_test\PluginManager')); + $this->assertStringEndsWith('/router_test/test1', \Drupal::state()->get('router_test_install')); } }