Remove empty fields from user return, add avatar

This commit is contained in:
Nabeel Shahzad
2020-03-24 15:53:59 -04:00
parent 877d5a5479
commit 3f7a7d0f2e
3 changed files with 23 additions and 10 deletions

View File

@@ -263,4 +263,12 @@ class ApiTest extends TestCase
$res = $this->get('/api/settings')->assertStatus(200);
$settings = $res->json();
}
public function testGetUser()
{
$this->user = factory(App\Models\User::class)->create();
$res = $this->get('/api/user')->assertStatus(200);
$user = $res->json('data');
$this->assertNotNull($user);
}
}