Commit fcc0c359 authored by Viral Solani's avatar Viral Solani

API Test Case

parent 1c8fb630
<?php
namespace Tests\Feature\Api\V1;
use Tests\TestCase;
use App\Models\Access\User\User;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Event;
use App\Events\Frontend\Auth\UserLoggedIn;
class AuthTest extends TestCase
{
/** @test */
public function users_can_login_through_api()
{
$res = $this->json('POST', '/api/v1/auth/login', [
'email' => $this->user->email,
'password' => '1234'
])
->assertStatus(200)
->assertJsonStructure([
'message',
'token'
]);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment