// Response for request of FirstRunWizardClient::frwLogin()
$this->
getFrwRequestHandler()->
append(new Response( body:
json_encode([ 'firstRunWizardUserToken' =>
[ 'token' =>
$frwUserToken,
'expirationDate' =>
$expirationDate->
format(Defaults::STORAGE_DATE_FORMAT
),
],
], \JSON_THROW_ON_ERROR
),
));
$this->frwController->
frwLogin( new RequestDataBag([ 'shopwareId' => 'shopware-id',
'password' => 'p4ssw0rd',
]),
$context );
static::
assertEquals( $frwUserToken,
$this->
fetchUserConfig(FirstRunWizardService::USER_CONFIG_KEY_FRW_USER_TOKEN, FirstRunWizardService::USER_CONFIG_VALUE_FRW_USER_TOKEN
) );
}