From abc39c4f63656adb5c6b832ab34a0a6f6fba0f57 Mon Sep 17 00:00:00 2001 From: denisdulici Date: Sun, 22 Dec 2019 19:15:58 +0300 Subject: [PATCH] tests --- database/seeds/TestCompany.php | 2 ++ tests/Feature/Auth/UsersTest.php | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/database/seeds/TestCompany.php b/database/seeds/TestCompany.php index 59d0eec40..7964083dd 100644 --- a/database/seeds/TestCompany.php +++ b/database/seeds/TestCompany.php @@ -41,6 +41,8 @@ class TestCompany extends Seeder 'enabled' => '1', 'settings' => [ 'wizard.completed' => '1', + 'schedule.send_invoice_reminder' => '1', + 'schedule.send_bill_reminder' => '1', ], ])); diff --git a/tests/Feature/Auth/UsersTest.php b/tests/Feature/Auth/UsersTest.php index a4b2ccf9e..4859263ca 100644 --- a/tests/Feature/Auth/UsersTest.php +++ b/tests/Feature/Auth/UsersTest.php @@ -90,8 +90,8 @@ class UsersTest extends FeatureTestCase { $user = $this->dispatch(new CreateUser($this->getUserRequest())); - $this->post(route('login'), ['email' => $user->email, $this->faker->password()]) - ->assertStatus(302); + $this->post(route('login'), ['email' => $user->email, 'password' => $this->faker->password()]) + ->assertStatus(200); $this->assertGuest(); } @@ -120,7 +120,7 @@ class UsersTest extends FeatureTestCase 'locale' => 'en-GB', 'companies' => [$this->company->id], 'roles' => ['1'], - 'enabled' => $this->faker->boolean ? 1 : 0, + 'enabled' => 1, ]; } } \ No newline at end of file