vierge-noire / cakephp-fixture-factories

CakePHP Fixture Factories
https://vierge-noire.github.io/
MIT License
83 stars 21 forks source link

Add note about the trait #181

Closed jamisonbryant closed 1 year ago

jamisonbryant commented 2 years ago

As discussed in vierge-noire/cakephp-test-suite-light#59, adds a small note to the docs to inform users they have to load the trait in order for their tables to be cleaned up post-test in CakePHP 4.4+.

pabloelcolombiano commented 2 years ago

Thank you for your contribution. The problem I have here is that the test suite light is only optional. The way you wrote it suggests that the vendor is compulsory, while it is only one options in addition to the ones offered by CakePHP.

Note also that this is from CakePHP 4.3.

jamisonbryant commented 2 years ago

At first I didn't understand your feedback, but then I researched Fixture State Managers and now I think I have a better grasp, so allow me to confirm: you're saying that the TruncateDirtyTables is but one way to manage the rows between tests, and it just so happens to come with the test-suite-light plugin? But there are other options, as shown in the link above.

If I got that right, then yes I agree it is written poorly. I will give it another shot.