controller refactoring part 10

This commit is contained in:
Peter Papp
2021-07-20 16:45:17 +02:00
parent 8b250e94cb
commit 2d814f3839
10 changed files with 84 additions and 58 deletions

View File

@@ -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', [