mirror of
https://github.com/shlinkio/shlink.git
synced 2025-02-25 18:45:27 -06:00
Add support to load openswoole-specific config via env vars
This commit is contained in:
@@ -135,7 +135,7 @@ class NotFoundRedirectResolverTest extends TestCase
|
||||
RouteResult::class,
|
||||
RouteResult::fromRoute(
|
||||
new Route(
|
||||
'',
|
||||
'foo',
|
||||
$this->createMock(MiddlewareInterface::class),
|
||||
['GET'],
|
||||
$routeName,
|
||||
|
||||
@@ -55,7 +55,7 @@ class NotFoundTemplateHandlerTest extends TestCase
|
||||
RouteResult::class,
|
||||
RouteResult::fromRoute(
|
||||
new Route(
|
||||
'',
|
||||
'foo',
|
||||
$this->createMock(MiddlewareInterface::class),
|
||||
['GET'],
|
||||
RedirectAction::class,
|
||||
|
||||
@@ -95,7 +95,7 @@ class AuthenticationMiddlewareTest extends TestCase
|
||||
{
|
||||
$baseRequest = fn (string $routeName) => ServerRequestFactory::fromGlobals()->withAttribute(
|
||||
RouteResult::class,
|
||||
RouteResult::fromRoute(new Route($routeName, $this->getDummyMiddleware()), []),
|
||||
RouteResult::fromRoute(new Route($routeName, $this->getDummyMiddleware())), // @phpstan-ignore-line
|
||||
);
|
||||
$apiKeyMessage = 'Expected one of the following authentication headers, ["X-Api-Key"], but none were provided';
|
||||
$queryMessage = 'Expected authentication to be provided in "apiKey" query param';
|
||||
|
||||
Reference in New Issue
Block a user