public function testGenerateAccessKeyWithInvalidIdentifier(): void
{ static::
expectException(ApiException::
class);
static::
expectExceptionMessage('Given identifier for access key is invalid.'
);
AccessKeyHelper::
generateAccessKey('invalid_identifier'
);
} public function testGenerateOriginWithIntegrationIdentifier(): void
{ $accessKey = AccessKeyHelper::
generateAccessKey('integration'
);
$origin = AccessKeyHelper::
getOrigin($accessKey);
static::
assertSame('integration',
$origin);
} public function testGenerateOriginWithInvalidAccessKey(): void
{ static::
expectExceptionMessage('Access key is invalid and could not be identified.'
);
static::
expectException(ApiException::
class);
AccessKeyHelper::
getOrigin('invalid_access_key'
);
} /**
* @return array<int, array<int, string>>
*/