Skip to content

Commit

Permalink
Store update user on unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
DyanGalih committed Jun 14, 2020
1 parent 4e1fab0 commit 5588757
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Traits/TestCaseTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 5588757

Please sign in to comment.