use Symfony\Component\HttpFoundation\Request;
/**
* @internal
*
* @covers \Shopware\Core\Framework\Routing\Event\MaintenanceModeRequestEvent
*/
class MaintenanceModeRequestEventTest extends TestCase
{ public function testIsClientAllowed(): void
{ $event =
new MaintenanceModeRequestEvent( new Request(),
[],
true
);
static::
assertTrue($event->
isClientAllowed());
$event->
disallowClient();
static::
assertFalse($event->
isClientAllowed());