mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 06:39:40 +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
924a2e5efa
commit
1ca610d96a
@ -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
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user