File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -230,9 +230,16 @@ public function testNamespacedTagAwareCache(): void
230230 $ this ->markTestSkipped ('Namespaced caches are not supported by this Symfony version. ' );
231231 }
232232
233- $ client = static ::createClient (['debug ' => false ]);
233+ $ client = static ::createClient (['debug ' => true ]);
234+ $ cache = static ::getContainer ()->get ('cache.app.taggable ' );
235+
236+ // make sure that the configured taggable cache supports namespaces before running this test
237+ if (!$ cache instanceof \Symfony \Contracts \Cache \NamespacedPoolInterface) {
238+ $ this ->markTestSkipped ('The configured tag-aware cache pool does not support namespaces. ' );
239+ }
234240
235241 $ client ->request ('GET ' , '/tracing/cache/namespaced/populate ' );
242+ $ this ->assertSame ('' , $ client ->getResponse ()->getContent ());
236243 $ this ->assertSame (200 , $ client ->getResponse ()->getStatusCode ());
237244
238245 $ this ->assertCount (1 , StubTransport::$ events );
You can’t perform that action at this time.
0 commit comments