diff --git a/test/AbstractTestCase.php b/test/AbstractTestCase.php index 07496f4..6f5ee39 100644 --- a/test/AbstractTestCase.php +++ b/test/AbstractTestCase.php @@ -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 { @@ -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.' + ] + ], + ] + ] + ] + ], ], ]; })