snipe-it/tests/unit
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 Version 3 - hold onto your butts 2016-03-25 01:18:05 -07:00
AccessoryTest.php Reverted name removal for Accessory in factory 2016-04-13 02:19:29 -07:00
AssetMaintenanceTest.php 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
AssetModelTest.php 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
AssetTest.php AssetTransformer refactoring, restored tests (#3407) 2017-03-14 08:37:39 -07:00
CategoryTest.php Seeds and tests (#3210) 2017-01-18 16:50:33 -08:00
CompanyTest.php Version 3 - hold onto your butts 2016-03-25 01:18:05 -07:00
ConsumableTest.php Version 3 - hold onto your butts 2016-03-25 01:18:05 -07:00
CustomFieldTest.php Updated db column name test for various languages 2017-01-26 16:57:23 -08:00
DepreciationTest.php Version 3 - hold onto your butts 2016-03-25 01:18:05 -07:00
LocationTest.php Version 3 - hold onto your butts 2016-03-25 01:18:05 -07:00
ManufacturerTest.php Version 3 - hold onto your butts 2016-03-25 01:18:05 -07:00
PermissionsTest.php Cleanup controller escaping (#3084) 2016-12-19 22:00:50 -08:00
SnipeModelTest.php 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
StatuslabelTest.php Fix tests (#2273) 2016-07-19 15:50:21 -07:00
SupplierTest.php Version 3 - hold onto your butts 2016-03-25 01:18:05 -07:00
UserTest.php Version 3 - hold onto your butts 2016-03-25 01:18:05 -07:00