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:
Franz Liedke 2020-02-07 23:22:22 +01:00
parent 930f6b06af
commit 010f1939e0

View File

@ -19,14 +19,6 @@ use Psr\Http\Message\ServerRequestInterface;
abstract class TestCase extends \PHPUnit\Framework\TestCase
{
public function setUp()
{
parent::setUp();
// Boot the Flarum app
$this->app();
}
/**
* @var \Flarum\Foundation\InstalledApp
*/