From 0a1be2cc211d9c2d07d311ae075857c51d8349d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Paris?= Date: Sun, 18 Jul 2021 10:55:51 +0200 Subject: [PATCH] Adapt tests to new way of wrapping Namespacing is configured here, which means instead of just one layer, we have a PSR cache wrapped in a doctrine cache with namespacing, itself wrapped again with a PSR cache. --- composer.json | 2 +- tests/Doctrine/Tests/ORM/Tools/SetupTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 963cff24967..d80dc19e9a5 100644 --- a/composer.json +++ b/composer.json @@ -21,7 +21,7 @@ "ext-pdo": "*", "composer/package-versions-deprecated": "^1.8", "doctrine/annotations": "^1.13", - "doctrine/cache": "^1.11.3 || ^2.0.3", + "doctrine/cache": "^1.12.1 || ^2.1.1", "doctrine/collections": "^1.5", "doctrine/common": "^3.0.3", "doctrine/dbal": "^2.13.0", diff --git a/tests/Doctrine/Tests/ORM/Tools/SetupTest.php b/tests/Doctrine/Tests/ORM/Tools/SetupTest.php index 6eaf7678f05..adc4d7d5d25 100644 --- a/tests/Doctrine/Tests/ORM/Tools/SetupTest.php +++ b/tests/Doctrine/Tests/ORM/Tools/SetupTest.php @@ -143,7 +143,7 @@ public function testConfigureCache(): void $this->assertSame($cache, $config->getQueryCacheImpl()); if (method_exists(Configuration::class, 'getMetadataCache')) { - $this->assertSame($adapter, $config->getMetadataCache()); + $this->assertSame($adapter, $config->getMetadataCache()->getCache()->getPool()); } else { $this->assertSame($cache, $config->getMetadataCacheImpl()); }