mirror of
https://github.com/flarum/core.git
synced 2025-07-23 09:41:26 +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
|
protected function database(): ConnectionInterface
|
||||||
{
|
{
|
||||||
|
$this->app();
|
||||||
// Set in `BeginTransactionAndSetDatabase` extender.
|
// Set in `BeginTransactionAndSetDatabase` extender.
|
||||||
return $this->database;
|
return $this->database;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user