Lint PHP code psr-12, add GH action

This commit is contained in:
Julien Nahum
2024-02-23 11:54:12 +01:00
parent e85e4df7fe
commit 62971a2ef4
226 changed files with 2338 additions and 2144 deletions

View File

@@ -6,9 +6,9 @@ it('can login to Forms', function () {
$user = User::factory()->create();
$this->postJson('/login', [
'email' => $user->email,
'password' => 'password',
])
'email' => $user->email,
'password' => 'password',
])
->assertSuccessful()
->assertJsonStructure(['token', 'expires_in'])
->assertJson(['token_type' => 'bearer']);
@@ -28,11 +28,10 @@ it('can log out', function () {
])->assertSuccessful();
$this->assertAuthenticated();
$this->postJson("/logout")
$this->postJson('/logout')
->assertSuccessful();
$this->assertGuest();
$this->getJson("/user")
$this->getJson('/user')
->assertStatus(401);
});