Added /api/settings to retrieve all VA settings #120

This commit is contained in:
Nabeel Shahzad
2018-01-06 15:41:23 -06:00
parent fbfefa4a3b
commit d63f0ee2f8
5 changed files with 73 additions and 0 deletions

View File

@@ -190,4 +190,11 @@ class ApiTest extends TestCase
$body = $resp->json();
$this->assertEquals($body['id'], $aircraft->id);
}
public function testGetAllSettings()
{
$this->user = factory(App\Models\User::class)->create();
$res = $this->get('/api/settings')->assertStatus(200);
$settings = $res->json();
}
}