From 010f1939e01d068e7269a9a6f3be00e184e9565d Mon Sep 17 00:00:00 2001 From: Franz Liedke Date: Fri, 7 Feb 2020 23:22:22 +0100 Subject: [PATCH] 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. --- framework/core/tests/integration/TestCase.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/framework/core/tests/integration/TestCase.php b/framework/core/tests/integration/TestCase.php index c6928812e..31d14199a 100644 --- a/framework/core/tests/integration/TestCase.php +++ b/framework/core/tests/integration/TestCase.php @@ -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 */