Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurHoaro committed Nov 25, 2023
1 parent 2224a89 commit 205fd36
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions tests/front/ShaarliAdminMiddlewareTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ class ShaarliAdminMiddlewareTest extends TestCase
/** @var ShaarliMiddleware */
protected $middleware;

/** @var RequestHandlerFactory */
protected $requestHandlerFactory;

public function setUp(): void
{
$this->initRequestResponseFactories();
Expand Down
5 changes: 3 additions & 2 deletions tests/front/ShaarliErrorHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@
use Shaarli\Front\Exception\ShaarliFrontException;
use Shaarli\TestCase;
use Shaarli\Tests\Utils\FakeRequest;
use Slim\App;
use Slim\CallableResolver;
use Slim\Exception\HttpNotFoundException;
use Slim\Factory\AppFactory;
use Slim\Psr7\Factory\ResponseFactory;
use Slim\Routing\RouteContext;

Expand All @@ -25,8 +27,7 @@ public function setUp(): void
$this->initRequestResponseFactories();
$this->createContainer();
$this->errorHandler = new ShaarliErrorHandler(
new CallableResolver(),
new ResponseFactory(),
AppFactory::create(),
null,
$this->container
);
Expand Down

0 comments on commit 205fd36

Please sign in to comment.