mirror of
https://github.com/shlinkio/shlink.git
synced 2026-09-03 19:52:51 -05:00
Format code using mago and remove dependency on shlink coding standard package
This commit is contained in:
@@ -22,8 +22,8 @@ class NotFoundTrackerMiddlewareTest extends TestCase
|
||||
{
|
||||
private NotFoundTrackerMiddleware $middleware;
|
||||
private ServerRequestInterface $request;
|
||||
private MockObject & RequestHandlerInterface $handler;
|
||||
private MockObject & RequestTrackerInterface $requestTracker;
|
||||
private MockObject&RequestHandlerInterface $handler;
|
||||
private MockObject&RequestTrackerInterface $requestTracker;
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
@@ -41,9 +41,12 @@ class NotFoundTrackerMiddlewareTest extends TestCase
|
||||
public function delegatesIntoRequestTracker(Response $resp, string|null $expectedRedirectUrl): void
|
||||
{
|
||||
$this->handler->expects($this->once())->method('handle')->with($this->request)->willReturn($resp);
|
||||
$this->requestTracker->expects($this->once())->method('trackNotFoundIfApplicable')->with(
|
||||
$this->request->withAttribute(REDIRECT_URL_REQUEST_ATTRIBUTE, $expectedRedirectUrl),
|
||||
);
|
||||
$this->requestTracker
|
||||
->expects($this->once())
|
||||
->method('trackNotFoundIfApplicable')
|
||||
->with(
|
||||
$this->request->withAttribute(REDIRECT_URL_REQUEST_ATTRIBUTE, $expectedRedirectUrl),
|
||||
);
|
||||
|
||||
$result = $this->middleware->process($this->request, $this->handler);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user