vierge-noire / cakephp-fixture-factories

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

#235 First draft of v3.1 #237

Open pabloelcolombiano opened 1 year ago

LordSimal commented 1 year ago

I do like the new resultset methods 👍

but I am not really sure what the benefit of the select query mocking is...

Maybe its just my usecase but I dont use seeders or any of the old fixture system to create a initial DB state for my tests anymore thanks to this awesome plugin.

Therefore what is the difference between just persiting entities via the factory so a normal e.g. ->get() call inside an integration test fetches it from the DB instead of (basically) mocking the model? just so that the DB layer is extracted and not called? is this so much faster?