/**
* @internal
*/
class StoreSessionExpiredMiddlewareTest extends TestCase
{ use IntegrationTestBehaviour;
public function testReturnsResponseIfStatusCodeIsNotUnauthorized(): void
{ $response =
new Response(200,
[], '{"payload":"data"}'
);
$middleware =
new StoreSessionExpiredMiddleware( $this->
getContainer()->
get(Connection::
class),
new RequestStack() );
$handledResponse =
$middleware($response);
static::
assertSame($response,
$handledResponse);
} public function testReturnsResponseWithRewoundBodyIfCodeIsNotMatched(): void
{