Fixed category test

This commit is contained in:
snipe 2018-05-18 14:58:06 -07:00
parent 883c65981b
commit 86d398abda

View file

@ -32,7 +32,7 @@ class ApiCategoriesCest
$response = json_decode($I->grabResponse(), true);
// dd($response);
// sample verify
$category = App\Models\Category::withCount('assets','accessories','consumables','components')
$category = App\Models\Category::withCount('assets','accessories','consumables','components','licenses')
->orderByDesc('created_at')->take(10)->get()->shuffle()->first();
$I->seeResponseContainsJson((new CategoriesTransformer)->transformCategory($category));