How can I mock a database query's response, without breaking things?
I have two databases, one we'll call 'old' and one 'new'. I want to copy a table from old to new, and have written an artisan command that does that, but I can't figure out the right way to test it. Here's my test: $user = (object) [ 'id' => 1, 'email' => 'test@test.com', 'password' => 'secret', 'au...