montogeek's avatar

How to test a CRUD controller?

Hi!

I am learning about testing and want to write tests for a CRUD controller before actually write the code, but I do not know how to start.

I am using CodeCeption. Thanks!

0 likes
2 replies
AndyWendt's avatar

You would probably be fine with acceptance/integration tests using behat,codeception or laracasts/integrated package.

I wouldn't worry about unit testing your controllers unless you have a lot of junk in them which is generally a bad idea unless the app is relatively small.

Please or to participate in this conversation.