Update doctrine packages and fix metadata cache

[MAILPOET-3658]
This commit is contained in:
Rostislav Wolny
2021-06-16 14:39:31 +02:00
committed by Veljko V
parent b6d420b19c
commit c9603b76dc
6 changed files with 503 additions and 360 deletions

View File

@@ -5,6 +5,7 @@ namespace MailPoet\Test\Config;
use MailPoet\Doctrine\Annotations\AnnotationReaderProvider;
use MailPoet\Doctrine\ConfigurationFactory;
use MailPoet\Doctrine\MetadataCache;
use MailPoet\Doctrine\PSRMetadataCache;
use MailPoet\Doctrine\TablePrefixMetadataFactory;
use MailPoetVendor\Doctrine\Common\Cache\ArrayCache;
use MailPoetVendor\Doctrine\Common\Proxy\AbstractProxyFactory;
@@ -22,7 +23,7 @@ class ConfigurationFactoryTest extends \MailPoetTest {
// metadata
expect($configuration->getClassMetadataFactoryName())->equals(TablePrefixMetadataFactory::class);
expect($configuration->getMetadataCacheImpl())->isInstanceOf(MetadataCache::class);
expect($configuration->getMetadataCache())->isInstanceOf(PSRMetadataCache::class);
expect($configuration->getMetadataDriverImpl())->isInstanceOf(AnnotationDriver::class);
// cache