NotFoundSubscriber example

use Symfony\Contracts\Cache\CacheInterface;

/** * @internal * * @covers \Shopware\Storefront\Framework\Routing\NotFound\NotFoundSubscriber */
class NotFoundSubscriberTest extends TestCase
{
    public function testDebugIsOnDoesNothing(): void
    {
        $subscriber = new NotFoundSubscriber(
            $this->createMock(ErrorController::class),
            $this->createMock(RequestStack::class),
            $this->createMock(SalesChannelContextServiceInterface::class),
            true,
            $this->createMock(CacheInterface::class),
            $this->createMock(AbstractCacheTracer::class),
            $this->createMock(EntityCacheKeyGenerator::class),
            $this->createMock(CacheInvalidator::class),
            new EventDispatcher()
        );

        
Home | Imprint | This part of the site doesn't use cookies.