芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/www/vendor/laravel/jetstream/stubs/tests/livewire/DeleteApiTokenTest.php
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'], ]); Livewire::test(ApiTokenManager::class) ->set(['apiTokenIdBeingDeleted' => $token->id]) ->call('deleteApiToken'); $this->assertCount(0, $user->fresh()->tokens); } }