Fix required after optional parameter in doctrine config factory

[MAILPOET-3296]
This commit is contained in:
Rostislav Wolny
2020-11-24 12:03:45 +01:00
committed by Veljko V
parent 56d7cd1398
commit 12cc818f8b
7 changed files with 9 additions and 9 deletions

View File

@ -14,7 +14,7 @@ use MailPoetVendor\Doctrine\ORM\Mapping\UnderscoreNamingStrategy;
class ConfigurationFactoryTest extends \MailPoetTest {
public function testItSetsUpBasicOptions() {
$configurationFactory = new ConfigurationFactory(false, new AnnotationReaderProvider());
$configurationFactory = new ConfigurationFactory(new AnnotationReaderProvider(), false);
$configuration = $configurationFactory->createConfiguration();
expect($configuration)->isInstanceOf(Configuration::class);
@ -36,12 +36,12 @@ class ConfigurationFactoryTest extends \MailPoetTest {
public function testItSetsUpEnvironmentSpecificOptions() {
// dev mode
$configurationFactory = new ConfigurationFactory(true, new AnnotationReaderProvider());
$configurationFactory = new ConfigurationFactory(new AnnotationReaderProvider(), true);
$configuration = $configurationFactory->createConfiguration();
expect($configuration->getAutoGenerateProxyClasses())->equals(AbstractProxyFactory::AUTOGENERATE_FILE_NOT_EXISTS);
// production mode
$configurationFactory = new ConfigurationFactory(false, new AnnotationReaderProvider());
$configurationFactory = new ConfigurationFactory(new AnnotationReaderProvider(), false);
$configuration = $configurationFactory->createConfiguration();
expect($configuration->getAutoGenerateProxyClasses())->equals(AbstractProxyFactory::AUTOGENERATE_NEVER);
}