Skip to content

Commit

Permalink
Fix test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Moln committed Sep 13, 2023
1 parent 43d1ce5 commit f52f20a
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion test/AbstractTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
use Zfegg\ExpressiveTest\AbstractActionTestCase;
use Zfegg\ExpressiveTest\PassMiddleware;
use Zfegg\PsrMvc\ConfigProvider;
use Zfegg\PsrMvc\Routing\RouteMetadata;

abstract class AbstractTestCase extends AbstractActionTestCase
{
Expand Down Expand Up @@ -73,7 +74,24 @@ public function loadContainer(): ContainerInterface
'aliases' => [
SerializerInterface::class => Serializer::class,
],

'auto' => [
'types' => [
RouteMetadata::class => [
'parameters' => [
'paths' => glob(dirname(__DIR__) . '/*/Example'),
'groups' => [
'test' => [
'prefix' => '/api',
'middlewares' => [
'middleware1',
],
'name' => 'api.test.'
]
],
]
]
]
],
],
];
})
Expand Down

0 comments on commit f52f20a

Please sign in to comment.