makeRequest example

'versions' => [
                'shopware/core' => [
                    'version' => '6.3.0.0',
                    'dev_requirement' => false,
                ],
            ],
        ]);
    }

    public function testExpectFailsOutdatedShopwareVersion(): void
    {
        $request = $this->makeRequest();
        $request->headers->set(PlatformRequest::HEADER_EXPECT_PACKAGES, 'shopware/core:~6.4');

        $event = new ControllerEvent(
            $this->createMock(Kernel::class),
            $this->setUp(...),
            $request,
            HttpKernelInterface::MAIN_REQUEST
        );

        static::expectException(ExpectationFailedException::class);

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