Functional tests are not idempotent : creation of accounts
Observed behavior
Functional tests are not idempotent. When you run them for the first time, everything is OK. When you run the same tests a second time, 4 tests appear as being in error.
These four tests are in tests/Acceptance/BasicTestsAccountsCest.php
:
createAccountAsAssociation
createAccountAsPerson
createAccountAsAdministration
createAccountAsServiceProvider
Expected behavior
Functional tests should be ok, even if they are run twice
Steps to reproduce
- Create a Comptoir in Vagrant
- Into the VM and from the Comptoir directory, run
vendor/bin/codecept run Acceptance
(all tests are green) - Re-run exactly the same command:
vendor/bin/codecept run Acceptance
, then 4 tests are red