snipe-it/tests
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
..
_data [WIP] Improvements to unit tests. (#3574) 2017-06-12 17:39:03 -07: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 Dept tests 2017-05-23 03:03:30 -07:00
api [WIP] Improvements to unit tests. (#3574) 2017-06-12 17:39:03 -07:00
functional [WIP] Improvements to unit tests. (#3574) 2017-06-12 17:39:03 -07:00
unit Migrate weird assigned_type issues, Issue #3972 (#3973) 2017-09-18 16:40:13 -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 [WIP] Improvements to unit tests. (#3574) 2017-06-12 17:39:03 -07:00