mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-13 06:47:46 -08:00
Try to fix test
This is a listing, not a single asset
This commit is contained in:
parent
0f85d6810b
commit
5dc2ac9e22
|
@ -33,8 +33,8 @@ class ApiAssetsCest
|
||||||
|
|
||||||
$response = json_decode($I->grabResponse(), true);
|
$response = json_decode($I->grabResponse(), true);
|
||||||
// sample verify
|
// sample verify
|
||||||
$asset = Asset::orderByDesc('id')->take(20)->get()->first();
|
$assets = Asset::orderByDesc('id')->take(20)->get()->first();
|
||||||
$I->seeResponseContainsJson($I->removeTimestamps((new AssetsTransformer)->transformAsset($asset)));
|
$I->seeResponseContainsJson($I->removeTimestamps((new AssetsTransformer)->transformAssets($assets)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @test */
|
/** @test */
|
||||||
|
|
Loading…
Reference in a new issue