diff --git a/tests/Feature/AccountTest.php b/tests/Feature/AccountTest.php index 0ea2f6c879c1..e2d83905a477 100644 --- a/tests/Feature/AccountTest.php +++ b/tests/Feature/AccountTest.php @@ -49,11 +49,10 @@ class AccountTest extends TestCase 'terms_of_service' => 1 ]; - $response = $this->post('/signup', $data); + $response = $this->post('/signup', $data, ['X-API-SECRET' => 'password']); - //$response->assertStatus(200); - // - $this->assertTrue(true); + $response->assertStatus(200); + } @@ -63,8 +62,8 @@ class AccountTest extends TestCase $data = [ 'first_name' => $this->faker->firstName, 'last_name' => $this->faker->lastName, - 'name' => $this->faker->company, - 'email' => $this->faker->unique()->safeEmail, + 'name' => $this->faker->company, + 'email' => $this->faker->unique()->safeEmail, 'password' => 'ALongAndBrilliantPassword123', 'privacy_policy' => 1, 'terms_of_service' => 1