From 6d53a5f58d1df61eb5300aa096726ac8e8d791cf Mon Sep 17 00:00:00 2001 From: snipe Date: Sat, 22 Apr 2017 19:31:22 -0500 Subject: [PATCH] Updated test for new JSON --- tests/api/ApiAssetsCest.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/api/ApiAssetsCest.php b/tests/api/ApiAssetsCest.php index 47233c427a..eb076d048b 100644 --- a/tests/api/ApiAssetsCest.php +++ b/tests/api/ApiAssetsCest.php @@ -55,6 +55,10 @@ class ApiAssetsCest 'id' => (int) $asset->model->manufacturer->id, 'name'=> e($asset->model->manufacturer->name) ] : null, + 'supplier' => ($asset->supplier) ? [ + 'id' => (int) $asset->supplier->id, + 'name'=> e($asset->supplier->name) + ] : null, 'notes' => e($asset->notes), 'order_number' => e($asset->order_number), 'company' => ($asset->company) ? [