// Response for request of FirstRunWizardClient::upgradeAccessToken()
$this->
getFrwRequestHandler()->
append(new Response( body:
json_encode([ 'shopUserToken' =>
[ 'token' =>
$shopUserToken,
'expirationDate'
=> (new \
DateTimeImmutable('2022-12-15'
))->
format(Defaults::STORAGE_DATE_FORMAT
),
],
'shopSecret' =>
$shopSecret,
], \JSON_THROW_ON_ERROR
),
));
$this->frwController->
frwFinish( new QueryDataBag([ 'failed' => false,
]),
$context );
static::
assertInstanceOf(FirstRunWizardFinishedEvent::
class,
$dispatchedEvent);
static::
assertNull( $this->
fetchUserConfig(FirstRunWizardService::USER_CONFIG_KEY_FRW_USER_TOKEN, FirstRunWizardService::USER_CONFIG_VALUE_FRW_USER_TOKEN
) );
static::
assertEquals(