diff --git a/php-packages/testing/src/integration/TestCase.php b/php-packages/testing/src/integration/TestCase.php index 45bdc6030..ae1315d99 100644 --- a/php-packages/testing/src/integration/TestCase.php +++ b/php-packages/testing/src/integration/TestCase.php @@ -191,6 +191,7 @@ abstract class TestCase extends \PHPUnit\Framework\TestCase protected function database(): ConnectionInterface { + $this->app(); // Set in `BeginTransactionAndSetDatabase` extender. return $this->database; }