vierge-noire / cakephp-fixture-factories

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

#235 First draft of v3.1 #237

Open pabloelcolombiano opened 9 months ago

LordSimal commented 9 months 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?