snipe-it/app
Daniel Meltzer f432f98e12 Importer tests + Fixes (#3733)
* Fix Bug in User::generateFormattedNameFromFullName

In a name "John Doe", this method would split it into "John" and " Doe",
Leaving a space in the last name when importing to the database.  Strip
this space.

* Cleanup/fix some item mapping.

Also make some changes to the importer schema to allow for unit testing.
Generate a default item mapping, and then merge that with any custom
mappings.

* Beginning work on importer unit tests.

* Strip out testrun branches from importer.  It added a lot of complexity and was not terribly useful with web importer as it stood, might reconsider down the road however.

* Normalize the mapped keys when using custom field mappings.

* Add test for custom asset import mapping.

* Make all unit tests inherit from a new custom base.

This baseclass currently calls Artisan::migrate() and seeds a Settings
instance.  This fixes unit tests after the autoincrement bits.

* Store requestable as a boolean.  Fixes some import oddities

* Work on tests for accessory importer.

* Test for custom mapping of accessory import, also adjust the internal field for purchase date.

* Update default locale fallback for currency detection

* Fix Reassignable in consumable as well.

* More importer tests and fixes.
2017-07-11 20:37:02 -07:00
..
Console Importer tests + Fixes (#3733) 2017-07-11 20:37:02 -07:00
Events Version 3 - hold onto your butts 2016-03-25 01:18:05 -07:00
Exceptions Fixes #3583 - incorrect 404 status code, use curl for checking .env 2017-06-01 20:41:23 -07:00
Helpers Added helper for dept list 2017-05-23 02:37:37 -07:00
Http Make custom fields into their own JSON array 2017-07-08 18:44:28 -07:00
Importer Importer tests + Fixes (#3733) 2017-07-11 20:37:02 -07:00
Jobs Version 3 - hold onto your butts 2016-03-25 01:18:05 -07:00
Listeners Version 3 - hold onto your butts 2016-03-25 01:18:05 -07:00
Models Importer tests + Fixes (#3733) 2017-07-11 20:37:02 -07:00
Notifications Small phpcbf cleanup 2016-12-29 14:02:18 -08:00
Observers Only add an update log message if the asset isn’t being checked in or out 2017-07-08 03:38:39 -07:00
Policies Fixed path in comments 2017-01-11 14:50:13 -08:00
Presenters Make custom fields into their own JSON array 2017-07-08 18:44:28 -07:00
Providers Added save/update/delete observers 2017-06-15 20:54:14 -07:00