We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fcc0c35 + c9c623a commit 28f4d36Copy full SHA for 28f4d36
tests/Feature/Api/V1/LoginTest.php
@@ -2,25 +2,22 @@
2
3
namespace Tests\Feature\Api\V1;
4
5
-use Tests\TestCase;
6
-use App\Models\Access\User\User;
7
use Illuminate\Support\Facades\Auth;
8
-use Illuminate\Support\Facades\Event;
9
-use App\Events\Frontend\Auth\UserLoggedIn;
+use Tests\TestCase;
10
11
-class AuthTest extends TestCase
+class LoginTest extends TestCase
12
{
13
/** @test */
14
public function users_can_login_through_api()
15
16
$res = $this->json('POST', '/api/v1/auth/login', [
17
- 'email' => $this->user->email,
18
- 'password' => '1234'
+ 'email' => $this->user->email,
+ 'password' => '1234',
19
])
20
->assertStatus(200)
21
->assertJsonStructure([
22
'message',
23
- 'token'
+ 'token',
24
]);
25
}
26
0 commit comments