public function testCorrectSignRequest(): void
{ $optionsRequest =
[AuthMiddleware::APP_REQUEST_TYPE =>
[ AuthMiddleware::APP_SECRET => 'secret',
],
'body' => 'test',
];
$this->
appendNewResponse(new Response(200
));
$client =
$this->
getContainer()->
get('shopware.app_system.guzzle'
);
$client->
post(new Uri('https://example.local'
),
$optionsRequest);
/** @var Request $request */
$request =
$this->
getLastRequest();
static::
assertArrayHasKey(RequestSigner::SHOPWARE_SHOP_SIGNATURE,
$request->
getHeaders());
} public function testMissingRequiredResponseHeader(): void
{ $this->
appendNewResponse(new Response(200
));