Commit c9c623af authored by Viral Solani's avatar Viral Solani Committed by StyleCI Bot

Apply fixes from StyleCI

parent fcc0c359
...@@ -2,25 +2,22 @@ ...@@ -2,25 +2,22 @@
namespace Tests\Feature\Api\V1; namespace Tests\Feature\Api\V1;
use Tests\TestCase;
use App\Models\Access\User\User;
use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Event; use Tests\TestCase;
use App\Events\Frontend\Auth\UserLoggedIn;
class AuthTest extends TestCase class LoginTest extends TestCase
{ {
/** @test */ /** @test */
public function users_can_login_through_api() public function users_can_login_through_api()
{ {
$res = $this->json('POST', '/api/v1/auth/login', [ $res = $this->json('POST', '/api/v1/auth/login', [
'email' => $this->user->email, 'email' => $this->user->email,
'password' => '1234' 'password' => '1234',
]) ])
->assertStatus(200) ->assertStatus(200)
->assertJsonStructure([ ->assertJsonStructure([
'message', 'message',
'token' '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