public function testUnableGenerateBundle(): void
{ $exception = ApiException::
unableGenerateBundle('bundleName'
);
static::
assertEquals(ApiException::API_UNABLE_GENERATE_BUNDLE,
$exception->
getErrorCode());
static::
assertEquals('Unable to generate bundle directory for bundle "bundleName".',
$exception->
getMessage());
} public function testInvalidSchemaDefinitions(): void
{ $exception = ApiException::
invalidSchemaDefinitions('file',
new \
JsonException());
static::
assertEquals(ApiException::API_INVALID_SCHEMA_DEFINITION_EXCEPTION,
$exception->
getErrorCode());
} public function testInvalidAccessKey(): void
{ $exception = ApiException::
invalidAccessKey();
static::
assertEquals(ApiException::API_INVALID_ACCESS_KEY_EXCEPTION,
$exception->
getErrorCode());
}