mirror of
https://github.com/filegator/filegator.git
synced 2025-08-17 20:41:33 +02:00
config add to head/body
This commit is contained in:
@@ -15,7 +15,6 @@ use Filegator\Config\Config;
|
||||
use Filegator\Container\Container;
|
||||
use Filegator\Kernel\Request;
|
||||
use Filegator\Kernel\Response;
|
||||
use Filegator\Services\View\Adapters\Vuejs;
|
||||
use Tests\FakeResponse;
|
||||
use Tests\FakeStreamedResponse;
|
||||
use Tests\TestCase;
|
||||
@@ -39,23 +38,4 @@ class MainTest extends TestCase
|
||||
$this->assertEquals($app->resolve(Request::class), $request);
|
||||
$this->assertInstanceOf(Response::class, $app->resolve(Response::class));
|
||||
}
|
||||
|
||||
public function testServices()
|
||||
{
|
||||
$config = [
|
||||
'services' => [
|
||||
'Service1' => [
|
||||
'handler' => 'Filegator\Services\View\Adapters\Vuejs',
|
||||
],
|
||||
'Service2' => [
|
||||
'handler' => 'Filegator\Services\View\Adapters\Vuejs',
|
||||
],
|
||||
],
|
||||
];
|
||||
|
||||
$app = new App(new Config($config), new Request(), new FakeResponse(), new FakeStreamedResponse(), new Container());
|
||||
|
||||
$this->assertEquals($app->resolve('Service1'), new Vuejs(new Config($config)));
|
||||
$this->assertEquals($app->resolve('Service2'), new Vuejs(new Config($config)));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user