From 9386992fdef6efe1092d0c754b0da47a8d8b8a8b Mon Sep 17 00:00:00 2001 From: Pig Fang Date: Sun, 17 Feb 2019 21:23:07 +0800 Subject: [PATCH] fix test finally (#4) * comment out a test * set an option --- tests/UserControllerTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/UserControllerTest.php b/tests/UserControllerTest.php index 9384e6ee..0538819c 100644 --- a/tests/UserControllerTest.php +++ b/tests/UserControllerTest.php @@ -85,6 +85,7 @@ class UserControllerTest extends TestCase // Remaining time is greater than 0 $user = factory(User::class)->create(['last_sign_at' => get_datetime_string()]); + option(['sign_gap_time' => 2]); $this->actAs($user) ->postJson('/user/sign') ->assertJson([ @@ -92,7 +93,7 @@ class UserControllerTest extends TestCase 'msg' => trans( 'user.cant-sign-until', [ - 'time' => option('sign_gap_time'), + 'time' => 2, 'unit' => trans('user.time-unit-hour') ] )