markTestSkipped('API support is not enabled.'); } $this->actingAs($user = User::factory()->withPersonalTeam()->create()); $token = $user->tokens()->create([ 'name' => 'Test Token', 'token' => Str::random(40), 'abilities' => ['create', 'read'], ]); $response = $this->delete('/user/api-tokens/'.$token->id); $this->assertCount(0, $user->fresh()->tokens); } }