$client =
$this->
createMock(ClientInterface::
class);
$client->
expects(static::
never()) ->
method('request'
);
$frwClient =
new FirstRunWizardClient( $client,
$this->
createMock(AbstractStoreRequestOptionsProvider::
class),
$this->
createMock(InstanceService::
class) );
$this->
expectException(\RuntimeException::
class);
$frwClient->
upgradeAccessToken($context);
} public function testUpgradeAccessToken(): void
{ $shopUserToken =
[ 'shopUserToken' =>
[ 'token' => 'store-us3r-t0k3n',
'expirationDate'
=> (new \
DateTimeImmutable('2021-01-01 00:00:00'
))->
format(Defaults::STORAGE_DATE_TIME_FORMAT
),
],
];