[2.x] [tests] implement a solution to run make:reset-password
command in tests
#322
Labels
Minor
Minor Enhancement
make:reset-password
command in tests
#322
We introduced a handful of test fixtures in #319 (basically the files
make:reset-password
generates) so we can run tests against a "real" symfony webapp. This is great, but maintaining fixtures is not ideal. We should:make:reset-password
right after we callmake:user
in the functional testThe reason why this was not done in #319 -
make:reset-password
requires user input to successfully execute. To simulate that in a test, we need to:['question 1 input', 'question 2 input']
We do this in MakerBundle -> https://github.com/symfony/maker-bundle/blob/main/src/Test/MakerTestEnvironment.php#L333 But that code is internal (and should stay that way for now).
Ideally, we would have a
symfonycasts/test-helpers
repo (insert better name here) that is "internal" / doesnt provide BC guarantees, etc.. that we can use in reset-password, verify-email, etc... to handle the nuts and bolts of bootstrapping a "app" test.The text was updated successfully, but these errors were encountered: