1
0
mirror of https://github.com/flarum/core.git synced 2025-07-15 22:06:24 +02: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:
Franz Liedke
2020-02-07 23:22:22 +01:00
parent fc59f0fdd8
commit 94fc460240

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