snipe-it/app/Http
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
..
Controllers /api_tests: Completed tests for basic CRUD for Assets and Components (#3426) 2017-03-31 13:48:11 -07:00
Middleware Small phpcbf cleanup 2016-12-29 14:02:18 -08:00
Requests Vue importer (#3235) 2017-01-25 21:29:23 -08:00
Traits Putting uniqueUndeleted into a trait for use across models 2016-07-26 01:39:30 -07:00
Transformers AssetTransformer refactoring, restored tests (#3407) 2017-03-14 08:37:39 -07:00
Kernel.php Updated auth:api in kernel 2017-01-11 14:54:11 -08:00