1
0
mirror of https://github.com/flarum/core.git synced 2025-08-11 10:55:47 +02:00

Merge pull request #2142 from flarum/fl/2055-prepare-for-laravel-58

Split up Application and Container
This commit is contained in:
Franz Liedke
2020-05-07 22:49:36 +02:00
committed by GitHub
22 changed files with 294 additions and 515 deletions

View File

@@ -11,6 +11,7 @@ namespace Flarum\Tests\integration;
use Flarum\Extend\ExtenderInterface;
use Flarum\Foundation\InstalledSite;
use Flarum\Foundation\Paths;
use Illuminate\Database\ConnectionInterface;
use Laminas\Diactoros\ServerRequest;
use Psr\Http\Message\ResponseInterface;
@@ -33,12 +34,12 @@ abstract class TestCase extends \PHPUnit\Framework\TestCase
{
if (is_null($this->app)) {
$site = new InstalledSite(
[
new Paths([
'base' => __DIR__.'/tmp',
'vendor' => __DIR__.'/../../vendor',
'public' => __DIR__.'/tmp/public',
'storage' => __DIR__.'/tmp/storage',
],
]),
include __DIR__.'/tmp/config.php'
);