Skip to content

Commit 512c89d

Browse files
committed
skip when cache has no namespaces
1 parent 5d505e1 commit 512c89d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tests/End2End/TracingCacheEnd2EndTest.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)