snipe-it/tests/unit
Daniel Meltzer a5764351f7 Migrate weird assigned_type issues, Issue #3972 (#3973)
For a while, prior to 987536930, we did not null assigned_type on
checkin.  This migration manually nulls all assigned_type fields if
assigned_to is unset.  Add a test to AssetTest for this as well...kind
of.  We need to extract an Asset::checkin() method for 4.1 that mirrors
Asset::checkOut() to really test this.

This also fixes a separate (but related) issue.  The Asset importer did
not set assigned_type when importing and creating users.  In this
instance, we assume that if assigned_to is set and assigned_type is not,
then the item was checked out to a user and update the DB accordingly.
Also add a check in ImporterTest for this issue.
2017-09-18 16:40:13 -07:00
..
_bootstrap.php Version 3 - hold onto your butts 2016-03-25 01:18:05 -07:00
AccessoryTest.php Importer tests + Fixes (#3733) 2017-07-11 20:37:02 -07:00
AssetMaintenanceTest.php Importer tests + Fixes (#3733) 2017-07-11 20:37:02 -07:00
AssetModelTest.php Importer tests + Fixes (#3733) 2017-07-11 20:37:02 -07:00
AssetTest.php Migrate weird assigned_type issues, Issue #3972 (#3973) 2017-09-18 16:40:13 -07:00
BaseTest.php Progress towards better email notifications (#3911) 2017-08-31 11:14:21 -07:00
CategoryTest.php Importer tests + Fixes (#3733) 2017-07-11 20:37:02 -07:00
CompanyTest.php Importer tests + Fixes (#3733) 2017-07-11 20:37:02 -07:00
ConsumableTest.php Importer tests + Fixes (#3733) 2017-07-11 20:37:02 -07:00
CustomFieldTest.php Importer tests + Fixes (#3733) 2017-07-11 20:37:02 -07:00
DepartmentTest.php Importer tests + Fixes (#3733) 2017-07-11 20:37:02 -07:00
DepreciationTest.php Importer tests + Fixes (#3733) 2017-07-11 20:37:02 -07:00
ImporterTest.php Migrate weird assigned_type issues, Issue #3972 (#3973) 2017-09-18 16:40:13 -07:00
LocationTest.php Importer tests + Fixes (#3733) 2017-07-11 20:37:02 -07:00
ManufacturerTest.php Importer tests + Fixes (#3733) 2017-07-11 20:37:02 -07:00
NotificationTest.php Custom field import repair (#3968) 2017-09-18 12:29:08 -07:00
PermissionsTest.php Importer tests + Fixes (#3733) 2017-07-11 20:37:02 -07:00
SnipeModelTest.php Importer tests + Fixes (#3733) 2017-07-11 20:37:02 -07:00
StatuslabelTest.php Importer tests + Fixes (#3733) 2017-07-11 20:37:02 -07:00
SupplierTest.php Importer tests + Fixes (#3733) 2017-07-11 20:37:02 -07:00
UserTest.php Importer tests + Fixes (#3733) 2017-07-11 20:37:02 -07:00