mirror of
https://github.com/pterodactyl/panel.git
synced 2026-12-02 12:25:44 -05:00
18 lines
554 B
PHP
18 lines
554 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Pterodactyl\Tests\Pest\Unit\Http\ApplicationApiControllerTest;
|
|
|
|
use Pterodactyl\Http\Controllers\Api\Application\ApplicationApiController;
|
|
use Pterodactyl\Tests\TestCase;
|
|
use Pterodactyl\Transformers\Api\Application\UserTransformer;
|
|
|
|
uses(TestCase::class);
|
|
|
|
test('the Application API resolves its own transformers', function (): void {
|
|
$controller = new class extends ApplicationApiController {};
|
|
|
|
expect($controller->getTransformer(UserTransformer::class))->toBeInstanceOf(UserTransformer::class);
|
|
});
|