use Symfony\Component\Routing\RouterInterface;
/**
* @internal
*
* @covers \Shopware\WebInstaller\Listener\PhpConfigForcerListener
*/
class PhpConfigForcerListenerTest extends TestCase
{ public function testCallOnConfigurePageDoesNotCreateALoop(): void
{ $listener =
new PhpConfigForcerListener($this->
createMock(RouterInterface::
class));
$event =
$this->
createMock(RequestEvent::
class);
$request =
$this->
getRequest();
$request->attributes->
set('_route', 'configure'
);
$event->
method('getRequest'
)->
willReturn($request);
$listener($event);
static::
assertNull($event->
getResponse());
}