laracasts / Reusable-Repositories

So you're using repositories, but have found the process of constantly reimplementing common methods to be cumbersome?
https://laracasts.com/lessons/repositories-and-inheritance
17 stars 2 forks source link

Could I see a test example for the Repos #1

Open clouddueling opened 10 years ago

clouddueling commented 10 years ago

I'm following this github repo example but I'm wondering how you'd write the test for this app.

https://github.com/laracasts/Reusable-Repositories/blob/master/app/controllers/ProductsController.php

JeffreyWay commented 10 years ago

Depends on if you want to write a unit test, or a functional one. Any preference there?

clouddueling commented 10 years ago

Just saw 'The Unit Testing Facades Conundrum' would love to see a unit test w/ phpspec.

Maybe both phpunit and phpspec to see the difference?