snipe-it/tests/unit
Andrea Bergamasco 99cc8293ef Fixed undefined metod in unit/PermissionTest (#3422)
* 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

* Fixed undefined method

* Fixed initial underscore trimmed by str_slug

* CustomFieldTest now works where intl PHP extension is not installed

If a server doesn't have the intl php extension installed, the custom fields tests failed. Now the tests perform the same check done in the CustomField class.
2017-03-14 08:39:03 -07:00
..
_bootstrap.php
AccessoryTest.php
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
ConsumableTest.php
CustomFieldTest.php Fixed undefined metod in unit/PermissionTest (#3422) 2017-03-14 08:39:03 -07:00
DepreciationTest.php
LocationTest.php
ManufacturerTest.php
PermissionsTest.php Fixed undefined metod in unit/PermissionTest (#3422) 2017-03-14 08:39:03 -07: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
UserTest.php