Skip to content

Commit 43d3634

Browse files
committed
adding a workaround for an odd failing test
1 parent 7132a38 commit 43d3634

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

tests/Maker/FunctionalTest.php

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -735,7 +735,12 @@ function (string $output, string $directory) {
735735
])
736736
->setFixtureFilesPath(__DIR__.'/../fixtures/MakeRegistrationFormEntity')
737737
->configureDatabase()
738-
->updateSchemaAfterCommand(),
738+
->updateSchemaAfterCommand()
739+
// workaround for a strange behavior where, every other
740+
// test run, the UniqueEntity would not be seen, because
741+
// the the validation cache was out of date. The cause
742+
// is currently unknown, so this workaround was added
743+
->addPostMakeCommand('APP_ENV=test php bin/console cache:clear')
739744
];
740745

741746
// sanity check on all the interactive questions
@@ -763,7 +768,10 @@ function (string $output, string $directory) {
763768
])
764769
->setFixtureFilesPath(__DIR__.'/../fixtures/MakeRegistrationFormEntity')
765770
->configureDatabase()
766-
->updateSchemaAfterCommand(),
771+
->updateSchemaAfterCommand()
772+
// workaround for strange failure - see test case
773+
// registration_form_entity_guard_authenticate for details
774+
->addPostMakeCommand('APP_ENV=test php bin/console cache:clear')
767775
];
768776

769777
yield 'auth_login_form_user_entity_with_encoder_logout' => [

0 commit comments

Comments
 (0)