I've been writing tests in lumen but I need to move to a different machine so I've been trying to set it all up. I copied over my tests but I get this error on all of them when I run them
[Symfony\Component\Debug\Exception\FatalErrorException]
Trait 'Laravel\Lumen\Testing\DatabaseTransactions' not found
I think I have lumen installed as I did the command composer require "laravel/installer". Is there something I'm meant to do?
Edit: I looked at the version that was working on my old machine and this code was at the top of app.php in the bootstrap folder
try {
(new Dotenv\Dotenv(__DIR__.'/../'))->load();
} catch (Dotenv\Exception\InvalidPathException $e) {
//
}
I inserted that at the top of app.php on my new machine and that error stopped appearing and I was now able to run a test. Unfortunately a new error occurs when I just have the default example test
1) ExampleTest::testBasicExample
Error: Call to undefined method ExampleTest::visit()
I'm guessing that I'm still missing something from lumen/laravel