I am trying to write some unit tests for my application. First i set up the test tenant, as far as I can see, the DB-connection is working fine.
Next I want to call some route lets say $this->get(route('welcome')); The repsonse is a 500 error and when I log route('welcome') the url is http://localhost:8000 instead of http://testing.localhost:8000.
My createApplication looks like this:
public function createApplication()
$app = require __DIR__.'/../bootstrap/app.php';
$tenancy = $app->make(Environment::class);
$website = Website::findOrFail(1);
Can anyone help me with this problem?