Newer
Older
<?php
namespace Tests\Feature;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Foundation\Testing\WithFaker;
use App\Models\User;
use Tests\TestCase;
use Laravel\Sanctum\Sanctum;
use Hash, Auth;
class UserLogOutTest extends TestCase
{
/*public function test_success_log_out_by_admin()
{
$user = User::factory()->create([
'role' => 'admin'
]);
Sanctum::actingAs(
$user,
['*']
);
$response = $this->post('/nova/logout', [
]);
$response->assertStatus(200);
}*/
}