1
0
mirror of https://github.com/flarum/core.git synced 2025-07-21 16:51:34 +02:00

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

View File

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