snipe-it/tests/api
Andrea Bergamasco 7ee172888d /api_tests: Completed tests for basic CRUD for Assets and Components (#3426)
* 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

* /api_tests: Fixed bugs in update() method + code formatting

* /api_tests: Minor code formatting

* /api_tests: Mirrored test code for PATCH and PUT methods

* Removed repeated code

* Test cleanup

* Fixed issues with update() through PATCH and PUT methods

* Added API test suite to .travis.yml
2017-03-31 13:48:11 -07:00
..
_bootstrap.php Components Assets view + stubbed API tests (#3325) 2017-02-21 14:26:46 -08:00
ApiAssetsCest.php /api_tests: Completed tests for basic CRUD for Assets and Components (#3426) 2017-03-31 13:48:11 -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