mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 16:22:14 +00:00
controller refactoring part 10
This commit is contained in:
@@ -18,7 +18,7 @@ class PersonalAccessTokenTest extends TestCase
|
||||
|
||||
$this
|
||||
->actingAs($user)
|
||||
->postJson('/api/user/token/create', [
|
||||
->postJson('/api/user/tokens', [
|
||||
'name' => 'token',
|
||||
])
|
||||
->assertStatus(201);
|
||||
@@ -43,7 +43,7 @@ class PersonalAccessTokenTest extends TestCase
|
||||
|
||||
$this
|
||||
->actingAs($user)
|
||||
->deleteJson("/api/user/token/revoke/$token_id")
|
||||
->deleteJson("/api/user/tokens/$token_id")
|
||||
->assertStatus(204);
|
||||
|
||||
$this->assertDatabaseMissing('personal_access_tokens', [
|
||||
|
||||
Reference in New Issue
Block a user