use IntegrationTestBehaviour;
use StoreClientBehaviour;
private AbstractStoreRequestOptionsProvider
$storeRequestOptionsProvider;
private Context
$storeContext;
protected function setUp(): void
{ $this->storeRequestOptionsProvider =
$this->
getContainer()->
get(StoreRequestOptionsProvider::
class);
$this->storeContext =
$this->
createAdminStoreContext();
} public function testGetAuthenticationHeadersHasUserStoreTokenAndShopSecret(): void
{ $shopSecret = 'im-a-super-safe-secret';
$this->
setShopSecret($shopSecret);
$headers =
$this->storeRequestOptionsProvider->
getAuthenticationHeader($this->storeContext
);
static::
assertEquals([ 'X-Shopware-Platform-Token' =>
$this->
getStoreTokenFromContext($this->storeContext
),