mirror of
https://github.com/pterodactyl/panel.git
synced 2026-12-02 20:35:50 -05:00
client resources: account
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user