client resources: account

This commit is contained in:
robert dennis
2026-10-12 05:18:57 -04:00
parent 85587a50e0
commit e2bd15ea3a
19 changed files with 173 additions and 225 deletions
@@ -10,7 +10,7 @@ use Pterodactyl\Tests\TestCase;
use Pterodactyl\Transformers\Api\Admin\UserTransformer as AdminUserTransformer;
use Pterodactyl\Transformers\Api\Application\BaseTransformer;
use Pterodactyl\Transformers\Api\Application\UserTransformer;
use Pterodactyl\Transformers\Api\Client\AccountTransformer;
use Pterodactyl\Transformers\Api\Client\BackupTransformer;
uses(TestCase::class);
@@ -20,7 +20,7 @@ test('the Application API refuses admin and client transformers', function (stri
expect(fn (): BaseTransformer => $controller->getTransformer($transformer))->toThrow(InvalidArgumentException::class, 'does not belong to the Application API');
})->with([
'admin, which returns every extension field' => [AdminUserTransformer::class],
'client' => [AccountTransformer::class],
'client' => [BackupTransformer::class],
]);
test('the Application API resolves its own transformers', function (): void {