Friday, October 2, 2015

How to load SQL views in Fixtures for unit tests in Cakephp 3?

My application has some sql views to perform complex queries in the database and be better able to filter the results based on these values.

One problem I encountered when running the unit tests is that Cake do not import sql views, just tables, breaking the application tests.


- How can I solve this problem?

- Is there any other way to replace the SQL Views within the application?

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

No comments: