Skip to content

Commit

Permalink
Cleanup fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesbochmann committed Mar 11, 2024
1 parent 8b6fe47 commit 08bfa91
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Tests/Unit/Middleware/AuthResolverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function handle(ServerRequestInterface $request): ResponseInterface
};
$response = $authMiddleware->process($request, $requestHandler);
$this->assertTrue($response instanceof ResponseInterface);
$this->assertSame('{"body":{"pid":"4@74dbee593db1fe3bd77ba6cc190c0cefe4a078bf"}}', $response->getBody()->getContents());
$this->assertSame('{"body":{"pid":"4@8edd87426159019aec9712ec50afcd8aa1aa0661"}}', $response->getBody()->getContents());
$this->assertSame('foo', $_POST['user']);
$this->assertSame('pass:word', $_POST['pass']);
$this->assertSame('login', $_POST['logintype']);
Expand Down Expand Up @@ -122,7 +122,7 @@ public function handle(ServerRequestInterface $request): ResponseInterface
$response = $authMiddleware->process($request, $requestHandler);
$this->assertTrue($response instanceof ResponseInterface);
$this->assertSame(
'{"body":{"user":"foo","pass":"pass:word","logintype":"login","pid":"4@74dbee593db1fe3bd77ba6cc190c0cefe4a078bf"}}',
'{"body":{"user":"foo","pass":"pass:word","logintype":"login","pid":"4@8edd87426159019aec9712ec50afcd8aa1aa0661"}}',
$response->getBody()->getContents()
);
$this->assertSame('foo', $_POST['user']);
Expand Down Expand Up @@ -186,7 +186,7 @@ public function handle(ServerRequestInterface $request): ResponseInterface
$response = $authMiddleware->process($request, $requestHandler);
$this->assertTrue($response instanceof ResponseInterface);
$this->assertSame(
'{"body":{"user":"foo","pass":"pass:word","logintype":"login","pid":"4@74dbee593db1fe3bd77ba6cc190c0cefe4a078bf"}}',
'{"body":{"user":"foo","pass":"pass:word","logintype":"login","pid":"4@8edd87426159019aec9712ec50afcd8aa1aa0661"}}',
$response->getBody()->getContents()
);
$this->assertSame('foo', $_POST['user']);
Expand Down

0 comments on commit 08bfa91

Please sign in to comment.