diff --git a/core/tests/Drupal/FunctionalTests/Routing/LazyRouteProviderInstallTest.php b/core/tests/Drupal/FunctionalTests/Routing/LazyRouteProviderInstallTest.php index 52d7341df6..bec7661a09 100644 --- a/core/tests/Drupal/FunctionalTests/Routing/LazyRouteProviderInstallTest.php +++ b/core/tests/Drupal/FunctionalTests/Routing/LazyRouteProviderInstallTest.php @@ -19,8 +19,10 @@ class LazyRouteProviderInstallTest extends BrowserTestBase { */ public function testInstallation() { $this->container->get('module_installer')->install(['router_test']); - $this->assertEquals('/admin', \Drupal::state()->get('Drupal\lazy_route_provider_install_test\PluginManager')); - $this->assertEquals('/router_test/test1', \Drupal::state()->get('router_test_install')); + // 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')); } }