laracasts / TestDummy

Easy factories for PHP integration testing.
https://laracasts.com/lessons/whats-new-in-testdummy
MIT License
456 stars 80 forks source link

Always return the collection of items on create. #76

Closed knvpk closed 9 years ago

knvpk commented 9 years ago

Always return the collection of items on create so that it is easy for testing the models with laravel collection items. In laravel when creating the models they return Collection items back whether the count is 1 or not.

JeffreyWay commented 9 years ago

Broke the tests, and not exactly what we want here.

knvpk commented 9 years ago

Yes i know it will broke the tests because im changing the behavior. may i know the reason why returning array if the count is one and collection if count more than one.