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 committed by Alexander Skvortsov
parent 924a2e5efa
commit 1ca610d96a

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
*/