snipe_it/tests/api
Andrea Bergamasco e03ebc3fd0 AssetTransformer refactoring, restored tests (#3407)
* Refactored AssetsTransformer

Casted all ids to int, escaped all text values,

* Added warranty_expires attribute to Asset model

$asset->warranty_expires contains a Carbon object with the warranty
expiration date. Returns null when either purchase_date or
warranty_months are not set.

* Ignoring php-cs cache files

* Restored asset tests expectations

Work in progress - tests still fail

* API controller refactoring, fixed HTTP status codes in responses

* Restored $request->get - debugging

* Added further checks in ApiAssetsCest::updateAssetWithPatch
2017-03-14 08:37:39 -07:00
..
_bootstrap.php Components Assets view + stubbed API tests (#3325) 2017-02-21 14:26:46 -08:00
ApiAssetsCest.php AssetTransformer refactoring, restored tests (#3407) 2017-03-14 08:37:39 -07:00
ApiComponentsAssetsCest.php REST API - Refactoring of routes file, more tests added (#3345) 2017-02-23 16:32:35 -08:00
ApiComponentsCest.php AssetTransformer refactoring, restored tests (#3407) 2017-03-14 08:37:39 -07:00