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:
@@ -191,6 +191,7 @@ abstract class TestCase extends \PHPUnit\Framework\TestCase
|
||||
|
||||
protected function database(): ConnectionInterface
|
||||
{
|
||||
$this->app();
|
||||
// Set in `BeginTransactionAndSetDatabase` extender.
|
||||
return $this->database;
|
||||
}
|
||||
|
Reference in New Issue
Block a user