snipe-it/tests
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
..
_data Update dump with new migration. 2016-12-29 14:06:16 -05:00
_envs Add presenters for models. (#3098) 2016-12-23 17:52:00 -08:00
_output Version 3 - hold onto your butts 2016-03-25 01:18:05 -07:00
_support REST API - Refactoring of routes file, more tests added (#3345) 2017-02-23 16:32:35 -08:00
acceptance Make delete routes work. (#3077) 2016-12-19 10:42:33 -08:00
api AssetTransformer refactoring, restored tests (#3407) 2017-03-14 08:37:39 -07:00
functional Bugfixes based on functional tests (#3338) 2017-02-22 22:49:19 -08:00
unit AssetTransformer refactoring, restored tests (#3407) 2017-03-14 08:37:39 -07:00
_bootstrap.php Version 3 - hold onto your butts 2016-03-25 01:18:05 -07:00
acceptance.suite.yml Switched configs around a little 2016-04-13 02:41:55 -07:00
api.suite.yml Components Assets view + stubbed API tests (#3325) 2017-02-21 14:26:46 -08:00
functional.suite.yml Cleanup controller escaping (#3084) 2016-12-19 22:00:50 -08:00
TestCase.php Discussion: Moving to policies for controller based authorization (#3080) 2016-12-19 11:04:28 -08:00
TODO.testing Partialize forms (#2884) 2016-11-16 16:56:57 -08:00
unit.suite.yml Move sanitization of input to the model attribute setters. This cleans up a lot of checks in the various controller methods and ensures data will be set in the model accurately regardless of where it's set. Add unit tests for these methods (#3102) 2016-12-26 15:17:46 -08:00