Improve test results.

This commit is contained in:
James Cole
2018-09-27 06:26:03 +02:00
parent 6c4f967c39
commit 214c7a6f3e
5 changed files with 189 additions and 6 deletions

View File

@@ -225,7 +225,7 @@ abstract class TestCase extends BaseTestCase
->where('accounts.user_id', $this->user()->id)
->where('account_types.type', $type)
->inRandomOrder()->take(1);
$result = $query->first();
$result = $query->first(['accounts.*']);
return $result;
}