Skip to content

Commit 6f1787a

Browse files
committed
restore another lost changes
1 parent 6016f1e commit 6f1787a

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

tests/Maker/MakeRegistrationFormTest.php

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,12 @@ public function getTestDetails()
2323
])
2424
->setFixtureFilesPath(__DIR__.'/../fixtures/MakeRegistrationFormEntity')
2525
->configureDatabase()
26-
->updateSchemaAfterCommand(),
26+
->updateSchemaAfterCommand()
27+
// workaround for a strange behavior where, every other
28+
// test run, the UniqueEntity would not be seen, because
29+
// the the validation cache was out of date. The cause
30+
// is currently unknown, so this workaround was added
31+
->addPostMakeCommand('php bin/console cache:clear --env=test')
2732
];
2833

2934
// sanity check on all the interactive questions
@@ -51,7 +56,10 @@ public function getTestDetails()
5156
])
5257
->setFixtureFilesPath(__DIR__.'/../fixtures/MakeRegistrationFormEntity')
5358
->configureDatabase()
54-
->updateSchemaAfterCommand(),
59+
->updateSchemaAfterCommand()
60+
// workaround for strange failure - see test case
61+
// registration_form_entity_guard_authenticate for details
62+
->addPostMakeCommand('php bin/console cache:clear --env=test')
5563
];
5664
}
5765
}

0 commit comments

Comments
 (0)