vendredi 24 février 2017

Cakephp 3 Test: How to load records from database?

I need to test some reports, there is a complex data structure and a lot of data affect for those reports, so creating fixtures for this purpose would be very tedious work. I'd like to use an existing database (actually copy of it) to test reports.

How can I achieve this in cakephp 3 tests? Is it possible to load records for fixtures (not a structure of table) from database in cakephp 3?

Aucun commentaire:

Enregistrer un commentaire