mirror of
https://github.com/flarum/framework.git
synced 2025-03-25 16:25:15 +08:00
Ensure app is booted when getting database
This commit is contained in:
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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user