use Symfony\Component\HttpFoundation\RequestStack;
/**
* @internal
*
* @covers \Shopware\Storefront\Framework\Routing\MaintenanceModeResolver
*/
class MaintenanceModeResolverTest extends TestCase
{ public function testShouldInstantiate(): void
{ static::
assertInstanceOf(MaintenanceModeResolver::
class,
new MaintenanceModeResolver($this->
getRequestStack(),
new CoreMaintenanceModeResolver(new EventDispatcher())));
} /**
* Tests whether the resolver redirects requests to the maintenance page correctly.
*
* @dataProvider maintenanceModeInactiveProvider
* @dataProvider maintenanceModeActiveProvider
* @dataProvider xmlHttpRequestProvider
* @dataProvider maintenancePageRequestProvider
* @dataProvider errorControllerRequestProvider
*/