X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fcontent_moderation%2Ftests%2Fsrc%2FFunctional%2FModerationStateTestBase.php;fp=web%2Fcore%2Fmodules%2Fcontent_moderation%2Ftests%2Fsrc%2FFunctional%2FModerationStateTestBase.php;h=712732f9f61923dfff52940ad6a901fbf36810fd;hp=5ee72ee2ad5af0ed7a65b7bf409a7c65c9a6c57f;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/web/core/modules/content_moderation/tests/src/Functional/ModerationStateTestBase.php b/web/core/modules/content_moderation/tests/src/Functional/ModerationStateTestBase.php index 5ee72ee2a..712732f9f 100644 --- a/web/core/modules/content_moderation/tests/src/Functional/ModerationStateTestBase.php +++ b/web/core/modules/content_moderation/tests/src/Functional/ModerationStateTestBase.php @@ -132,6 +132,9 @@ abstract class ModerationStateTestBase extends BrowserTestBase { // @see content_moderation_workflow_insert() \Drupal::service('entity_type.bundle.info')->clearCachedBundles(); \Drupal::service('entity_field.manager')->clearCachedFieldDefinitions(); + /** @var \Drupal\Core\Routing\RouteBuilderInterface $router_builder */ + $router_builder = $this->container->get('router.builder'); + $router_builder->rebuildIfNeeded(); } /**