mirror of
https://github.com/flarum/framework.git
synced 2025-03-11 04:35:16 +08:00
Integration tests: Create app lazily when needed
This will allow registering extenders in test scenarios. Previously, this would not have had any effect as the app would have booted already.
This commit is contained in:
parent
930f6b06af
commit
010f1939e0
@ -19,14 +19,6 @@ use Psr\Http\Message\ServerRequestInterface;
|
|||||||
|
|
||||||
abstract class TestCase extends \PHPUnit\Framework\TestCase
|
abstract class TestCase extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
public function setUp()
|
|
||||||
{
|
|
||||||
parent::setUp();
|
|
||||||
|
|
||||||
// Boot the Flarum app
|
|
||||||
$this->app();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var \Flarum\Foundation\InstalledApp
|
* @var \Flarum\Foundation\InstalledApp
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user