diff --git a/core/modules/layout_builder/tests/src/Unit/DefaultsSectionStorageTest.php b/core/modules/layout_builder/tests/src/Unit/DefaultsSectionStorageTest.php index f9ee5a6925..046d710d11 100644 --- a/core/modules/layout_builder/tests/src/Unit/DefaultsSectionStorageTest.php +++ b/core/modules/layout_builder/tests/src/Unit/DefaultsSectionStorageTest.php @@ -406,6 +406,7 @@ public function testBuildRoutes() { '_layout_builder' => TRUE, '_admin_route' => FALSE, '_field_ui' => TRUE, + 'no_cache' => TRUE, ] ), 'layout_builder.defaults.with_bundle_key.discard_changes' => new Route( @@ -427,6 +428,7 @@ public function testBuildRoutes() { ], '_layout_builder' => TRUE, '_admin_route' => FALSE, + 'no_cache' => TRUE, ] ), 'layout_builder.defaults.with_bundle_key.disable' => new Route( @@ -446,6 +448,7 @@ public function testBuildRoutes() { 'parameters' => [ 'section_storage' => ['layout_builder_tempstore' => TRUE], ], + 'no_cache' => TRUE, ] ), 'layout_builder.defaults.with_bundle_parameter.view' => new Route( @@ -467,6 +470,7 @@ public function testBuildRoutes() { ], '_layout_builder' => TRUE, '_admin_route' => FALSE, + 'no_cache' => TRUE, ] ), 'layout_builder.defaults.with_bundle_parameter.discard_changes' => new Route( @@ -487,6 +491,7 @@ public function testBuildRoutes() { ], '_layout_builder' => TRUE, '_admin_route' => FALSE, + 'no_cache' => TRUE, ] ), 'layout_builder.defaults.with_bundle_parameter.disable' => new Route( @@ -505,6 +510,7 @@ public function testBuildRoutes() { 'parameters' => [ 'section_storage' => ['layout_builder_tempstore' => TRUE], ], + 'no_cache' => TRUE, ] ), ]; diff --git a/core/modules/layout_builder/tests/src/Unit/OverridesSectionStorageTest.php b/core/modules/layout_builder/tests/src/Unit/OverridesSectionStorageTest.php index eb03ae2e76..61570dd9f2 100644 --- a/core/modules/layout_builder/tests/src/Unit/OverridesSectionStorageTest.php +++ b/core/modules/layout_builder/tests/src/Unit/OverridesSectionStorageTest.php @@ -380,6 +380,7 @@ public function testBuildRoutes() { 'from_canonical' => ['type' => 'entity:from_canonical'], ], '_layout_builder' => TRUE, + 'no_cache' => TRUE, ] ), 'layout_builder.overrides.from_canonical.discard_changes' => new Route( @@ -400,6 +401,7 @@ public function testBuildRoutes() { 'from_canonical' => ['type' => 'entity:from_canonical'], ], '_layout_builder' => TRUE, + 'no_cache' => TRUE, ] ), 'layout_builder.overrides.from_canonical.revert' => new Route( @@ -420,6 +422,7 @@ public function testBuildRoutes() { 'from_canonical' => ['type' => 'entity:from_canonical'], ], '_layout_builder' => TRUE, + 'no_cache' => TRUE, ] ), 'layout_builder.overrides.with_string_id.view' => new Route( @@ -440,6 +443,7 @@ public function testBuildRoutes() { 'with_string_id' => ['type' => 'entity:with_string_id'], ], '_layout_builder' => TRUE, + 'no_cache' => TRUE, ] ), 'layout_builder.overrides.with_string_id.discard_changes' => new Route( @@ -459,6 +463,7 @@ public function testBuildRoutes() { 'with_string_id' => ['type' => 'entity:with_string_id'], ], '_layout_builder' => TRUE, + 'no_cache' => TRUE, ] ), 'layout_builder.overrides.with_string_id.revert' => new Route( @@ -478,6 +483,7 @@ public function testBuildRoutes() { 'with_string_id' => ['type' => 'entity:with_string_id'], ], '_layout_builder' => TRUE, + 'no_cache' => TRUE, ] ), 'layout_builder.overrides.with_integer_id.view' => new Route( @@ -499,6 +505,7 @@ public function testBuildRoutes() { 'with_integer_id' => ['type' => 'entity:with_integer_id'], ], '_layout_builder' => TRUE, + 'no_cache' => TRUE, ] ), 'layout_builder.overrides.with_integer_id.discard_changes' => new Route( @@ -519,6 +526,7 @@ public function testBuildRoutes() { 'with_integer_id' => ['type' => 'entity:with_integer_id'], ], '_layout_builder' => TRUE, + 'no_cache' => TRUE, ] ), 'layout_builder.overrides.with_integer_id.revert' => new Route( @@ -539,6 +547,7 @@ public function testBuildRoutes() { 'with_integer_id' => ['type' => 'entity:with_integer_id'], ], '_layout_builder' => TRUE, + 'no_cache' => TRUE, ] ), ];