snipe-it/app/Models
Daniel Meltzer 5d4920c741 [WIP] Improvements to unit tests. (#3574)
* Improvemenets to unit tests.

* Break up modelfactory into multiple files, populate many states.
* Begin testing validation at the unit test level, test relationships.
* Add tests for Asset::availableForCheckout.
* Model factories now generate all needed relationships on demand,
  which allows us to unit test with a empty database.
* To faciliate the empty database, we move to using sqlite in memory as
  the unit testing database.

* Fix bug with logs of checkouts to non users.

* Fix location finding for assets.  Also Fix location show page to show users associated with location.  Still need some work to show assets.

* More test and generator improvements

* More unit test fixes. PermissionsTest is borked still.

* More Updates

* Rewrite permissionstest.  Check that we have access on the model level rather than via web requests.  Also test delete permissions.

* Fix seeders.

* Make the default asset model factory generate assets that are rtd for testing.

* Save progress.

* Rebase tests, fix department unit test, update database for functional tests.

* Update functional and api tests to use new modelfactory signatures.
2017-06-12 17:39:03 -07:00
..
Accessory.php Pull out weird query scope that breaks stuff when querying large datasets 2017-04-26 22:40:20 -07:00
Actionlog.php Added targetType method 2017-05-23 14:31:14 -07:00
Asset.php [WIP] Improvements to unit tests. (#3574) 2017-06-12 17:39:03 -07:00
AssetMaintenance.php Small phpcbf cleanup 2016-12-29 14:02:18 -08:00
AssetModel.php Increase max EOL 2017-02-21 15:39:46 -08:00
Category.php Vue importer (#3235) 2017-01-25 21:29:23 -08:00
CheckoutRequest.php Port more assignedUser to assignedTo. 2016-12-29 09:31:16 -05:00
Company.php Small phpcbf cleanup 2016-12-29 14:02:18 -08:00
CompanyableChildScope.php Updated docblocks 2016-04-07 13:21:09 -07:00
CompanyableChildTrait.php Version 3 - hold onto your butts 2016-03-25 01:18:05 -07:00
CompanyableScope.php Updated docblocks 2016-04-07 13:21:09 -07:00
CompanyableTrait.php Version 3 - hold onto your butts 2016-03-25 01:18:05 -07:00
Component.php Importer: Add License Importer and refactor (#3143) 2017-01-10 16:19:18 -08:00
Consumable.php Importer: Add License Importer and refactor (#3143) 2017-01-10 16:19:18 -08:00
ConsumableAssignment.php Version 3 - hold onto your butts 2016-03-25 01:18:05 -07:00
CustomField.php Importer fixes v2 (#3524) 2017-05-03 12:14:35 -07:00
CustomFieldset.php Small phpcbf cleanup 2016-12-29 14:02:18 -08:00
Department.php Allow manager to be null for dept 2017-05-23 02:49:00 -07:00
Depreciable.php Partialize forms (#2884) 2016-11-16 16:56:57 -08:00
Depreciation.php Fixed Illuminate path 2017-02-22 22:20:57 -08:00
Group.php Partialize forms (#2884) 2016-11-16 16:56:57 -08:00
ICompanyableChild.php Version 3 - hold onto your butts 2016-03-25 01:18:05 -07:00
Import.php Vue importer (#3235) 2017-01-25 21:29:23 -08:00
Ldap.php Add support for location-specific LDAP OUs. (#3176) 2017-01-11 23:37:14 -08:00
License.php Importer: Add License Importer and refactor (#3143) 2017-01-10 16:19:18 -08:00
LicenseSeat.php Actionlog Class: Improvements and polymorphism (#2561) 2016-09-06 19:39:42 -07:00
Location.php Added some hidden fields 2017-01-13 00:12:26 -08:00
Loggable.php [WIP] Improvements to unit tests. (#3574) 2017-06-12 17:39:03 -07:00
Manufacturer.php Fixes #3311 - more fields for manufacturers 2017-03-10 22:08:59 -08:00
Requestable.php Checkout Improvements, and initial support for requesting an asset model (#2573) 2016-09-15 19:58:27 -07:00
Setting.php Remove useless validation for custom CSS 2017-03-11 15:34:54 -08:00
SnipeModel.php Importer: Add License Importer and refactor (#3143) 2017-01-10 16:19:18 -08:00
Statuslabel.php More bootstrap tables formatting 2017-01-24 22:25:17 -08:00
Supplier.php Cleanup controller escaping (#3084) 2016-12-19 22:00:50 -08:00
Throttle.php Version 3 - hold onto your butts 2016-03-25 01:18:05 -07:00
User.php Dept search in User query scopes 2017-05-23 02:49:27 -07:00