From 55887574940323a082881220945a2a0a7d044557 Mon Sep 17 00:00:00 2001 From: Dyan Galih Date: Sun, 14 Jun 2020 10:21:31 +0700 Subject: [PATCH] Store update user on unit test --- src/Traits/TestCaseTrait.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Traits/TestCaseTrait.php b/src/Traits/TestCaseTrait.php index cb2e4a5..9535aa5 100644 --- a/src/Traits/TestCaseTrait.php +++ b/src/Traits/TestCaseTrait.php @@ -74,6 +74,7 @@ protected function secure() if ($user != null) { if ($user->api_token == null) { $user->api_token = $this->getFaker()->uuid; + $user->save(); } $this->be($user); } else {