Ensure app is booted when getting database

This commit is contained in:
Alexander Skvortsov 2021-04-23 15:20:29 -04:00
parent 0569da23e1
commit 04b04f3635

@ -191,6 +191,7 @@ abstract class TestCase extends \PHPUnit\Framework\TestCase
protected function database(): ConnectionInterface
{
$this->app();
// Set in `BeginTransactionAndSetDatabase` extender.
return $this->database;
}