diff --git a/tests/api/ApiAssetsCest.php b/tests/api/ApiAssetsCest.php index 51d174c592..0b0835593e 100644 --- a/tests/api/ApiAssetsCest.php +++ b/tests/api/ApiAssetsCest.php @@ -33,8 +33,8 @@ class ApiAssetsCest $response = json_decode($I->grabResponse(), true); // sample verify - $asset = Asset::orderByDesc('id')->take(20)->get()->first(); - $I->seeResponseContainsJson($I->removeTimestamps((new AssetsTransformer)->transformAsset($asset))); + $assets = Asset::orderByDesc('id')->take(20)->get()->first(); + $I->seeResponseContainsJson($I->removeTimestamps((new AssetsTransformer)->transformAssets($assets))); } /** @test */