Tag Info

New answers tagged


You probably want to test a class that is using an eloquent model rather than the model itself. To create an in memory database for eloquent to query against in your test you want to do create a data base and then create your tables in it with some data to test against. use MyNamespace\ClassToTest; use MyNamespace\Models\MyModel; use ...

Top 50 recent answers are included