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

@@ -12,30 +12,28 @@ it('can login onboarded users', function () {
$this->createUserWorkspace($user);
$this->browse(function ($browser) use ($user) {
$browser->visit(new Login)
$browser->visit(new Login())
->submit($user->email, 'password')
->assertPageIs(Home::class);
});
});
it('cannot login with invalid credentials',function()
{
it('cannot login with invalid credentials', function () {
$this->browse(function ($browser) {
$browser->visit(new Login)
$browser->visit(new Login())
->submit('test@test.app', 'password')
->pause(100)
->assertSee('These credentials do not match our records.');
});
});
it('can log out the user',function()
{
it('can log out the user', function () {
$user = User::factory()->create();
$this->browse(function ($browser) use ($user) {
$browser->visit(new Login)
$browser->visit(new Login())
->submit($user->email, 'password')
->on(new Home)
->on(new Home())
->clickLogout()
->assertPageIs(Login::class);
});