static::
assertNotFalse($this->
getBrowser()->
getResponse()->
getContent());
$response = \
json_decode($this->
getBrowser()->
getResponse()->
getContent(), true, 512, \JSON_THROW_ON_ERROR
);
static::
assertArrayNotHasKey('errors',
$response);
} public function testDefaultAccessTokenScopes(): void
{ $client =
$this->
getBrowser(false
);
$configuration =
$this->
getContainer()->
get('shopware.jwt_config'
);
$jwtTokenParser =
$configuration->
parser();
$authPayload =
[ 'grant_type' => 'password',
'client_id' => 'administration',
'username' => 'admin',
'password' => 'shopware',
'scope' =>
[],
];
$client->
request('POST', '/api/oauth/token',
$authPayload);
static::
assertNotFalse($client->
getResponse()->
getContent());