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

View file

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