This commit is contained in:
Dane Everitt 2021-08-07 09:19:21 -07:00
parent 75e0a862e7
commit 22f1341fea
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53
1 changed files with 1 additions and 2 deletions

View File

@ -3,7 +3,6 @@
namespace Pterodactyl\Tests\Integration\Api\Client\Server; namespace Pterodactyl\Tests\Integration\Api\Client\Server;
use Carbon\CarbonImmutable; use Carbon\CarbonImmutable;
use Pterodactyl\Models\User;
use Illuminate\Http\Response; use Illuminate\Http\Response;
use Lcobucci\JWT\Configuration; use Lcobucci\JWT\Configuration;
use Pterodactyl\Models\Permission; use Pterodactyl\Models\Permission;
@ -33,7 +32,7 @@ class WebsocketControllerTest extends ClientApiIntegrationTestCase
*/ */
public function testUserWithoutPermissionForServerReceivesError() public function testUserWithoutPermissionForServerReceivesError()
{ {
[,$server] = $this->generateTestAccount([Permission::ACTION_WEBSOCKET_CONNECT]); [, $server] = $this->generateTestAccount([Permission::ACTION_WEBSOCKET_CONNECT]);
[$user,] = $this->generateTestAccount([Permission::ACTION_WEBSOCKET_CONNECT]); [$user,] = $this->generateTestAccount([Permission::ACTION_WEBSOCKET_CONNECT]);
$this->actingAs($user)->getJson("/api/client/servers/{$server->uuid}/websocket") $this->actingAs($user)->getJson("/api/client/servers/{$server->uuid}/websocket")