X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=tests%2FFixtureTest.php;h=94b6a35b71286b1dd733f6c593efc28a3343b70d;hb=33c7abd376346651fbf5ebefd73b13db14557924;hp=bbf8cfd53994113362c0109b8a086a0ddf243964;hpb=5e859395023face01d03160f4807b85c64d081a9;p=friendica.git diff --git a/tests/FixtureTest.php b/tests/FixtureTest.php index bbf8cfd539..94b6a35b71 100644 --- a/tests/FixtureTest.php +++ b/tests/FixtureTest.php @@ -1,5 +1,22 @@ . + * * FixtureTest class. */ @@ -32,10 +49,19 @@ abstract class FixtureTest extends DatabaseTest { parent::setUp(); + $server = $_SERVER; + $server['REQUEST_METHOD'] = Router::GET; + $this->dice = (new Dice()) ->addRules(include __DIR__ . '/../static/dependencies.config.php') ->addRule(Database::class, ['instanceOf' => StaticDatabase::class, 'shared' => true]) - ->addRule(IHandleSessions::class, ['instanceOf' => Session\Type\Memory::class, 'shared' => true, 'call' => null]); + ->addRule(IHandleSessions::class, ['instanceOf' => Session\Type\Memory::class, 'shared' => true, 'call' => null]) + ->addRule(Arguments::class, [ + 'instanceOf' => Arguments::class, + 'call' => [ + ['determine', [$server, $_GET], Dice::CHAIN_CALL], + ], + ]); DI::init($this->dice); /** @var IManageConfigValues $config */