$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);
} /**
* @doesNotPerformAssertions
*/
public function testExpectMatchesShopwareVersion(): void
{ $request =
$this->
makeRequest();
$request->headers->
set(PlatformRequest::HEADER_EXPECT_PACKAGES, 'shopware/core:~6.3.0.0'
);
$event =
new ControllerEvent(