mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-28 11:00:39 +00:00
create AccessToken route(Vue)
This commit is contained in:
@@ -166,11 +166,13 @@ class UserAccountTest extends TestCase
|
||||
|
||||
Sanctum::actingAs($user);
|
||||
|
||||
$this->postJson('/api/user/token/create')
|
||||
->assertStatus(201);
|
||||
$this->postJson('/api/user/token/create', [
|
||||
'name' => 'token'
|
||||
])->assertStatus(201);
|
||||
|
||||
$this->assertDatabaseHas('personal_access_tokens', [
|
||||
'tokenable_id' => $user->id,
|
||||
'name' => 'token'
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user