This commit is contained in:
snipe 2018-07-17 01:03:25 -07:00
parent 5dc2ac9e22
commit 3fb5f6f5be

View file

@ -33,8 +33,8 @@ class ApiAssetsCest
$response = json_decode($I->grabResponse(), true);
// sample verify
$assets = Asset::orderByDesc('id')->take(20)->get()->first();
$I->seeResponseContainsJson($I->removeTimestamps((new AssetsTransformer)->transformAssets($assets)));
$asset = Asset::orderByDesc('id')->take(20)->get()->first();
$I->seeResponseContainsJson($I->removeTimestamps((new AssetsTransformer)->transformAsset($asset)));
}
/** @test */