$controller->getTransformer(AdminUserTransformer::class))->toThrow(InvalidArgumentException::class, 'does not belong to the Application API'); }); test('the Application API resolves its own transformers', function (): void { $controller = new class extends ApplicationApiController {}; expect($controller->getTransformer(UserTransformer::class))->toBeInstanceOf(UserTransformer::class); });