public function testResolverNotFoundException(): void
{ $exception = ApiException::
resolverNotFoundException('name'
);
static::
assertEquals(ApiException::API_RESOLVER_NOT_FOUND_EXCEPTION,
$exception->
getErrorCode());
static::
assertEquals('Foreign key resolver for key name not found',
$exception->
getMessage());
} public function testUnsupportedAssociation(): void
{ $exception = ApiException::
unsupportedAssociation('name'
);
static::
assertEquals(ApiException::API_UNSUPPORTED_ASSOCIATION_FIELD,
$exception->
getErrorCode());
static::
assertEquals('Unsupported association for field name',
$exception->
getMessage());
} public function testMissingPrivileges(): void
{ $exception = ApiException::
missingPrivileges(['read', 'write'
]);
static::
assertInstanceOf(MissingPrivilegeException::
class,
$exception);
}