'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);
$this->expectationSubscriber->
checkExpectations($event);
}