snipe-it/tests
Daniel Meltzer 638a7b2d91 Assetcontroller cleanup (#5858)
* Extract method/cleanup

* Remove apiStore method that is unusued since api controllers.

* Use proper model exception

* Remove old user importer.  This is now supported by the general importer framework.

* Refactor AssetsController methods.

This is a giant diff without many functional changes, mostly cosmetic.
I've pulled a number of methods out of assetscontroller, preferring
instead to create some more targetted controllers for related actions.
I think this cleans up the file some, and suggests some places for
future targetted improvement.

Fix weird missing things.

* Fix Unit test failing after date changes.

* Pass valid string to be translated.

* Some method cleanup for codacy.

* Extract trait for common checkout uses and codacy fixes.
2018-07-16 17:44:03 -07:00
..
_data Avoid populating db manually. (#5255) 2018-03-27 17:43:28 -07:00
_envs Avoid populating db manually. (#5255) 2018-03-27 17:43:28 -07:00
_output Version 3 - hold onto your butts 2016-03-25 01:18:05 -07:00
_support Strip timestamps from comparison for api tests, in an attempt to fix the test failures. (#5847) 2018-07-16 14:41:51 -07:00
acceptance Dept tests 2017-05-23 03:03:30 -07:00
api Strip timestamps from comparison for api tests, in an attempt to fix the test failures. (#5847) 2018-07-16 14:41:51 -07:00
functional Partial fix for license+category tests 2018-05-16 18:35:11 -07:00
unit Assetcontroller cleanup (#5858) 2018-07-16 17:44:03 -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 Avoid populating db manually. (#5255) 2018-03-27 17:43:28 -07:00
functional.suite.yml Avoid populating db manually. (#5255) 2018-03-27 17:43:28 -07: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 Disable broken tests (#5073) 2018-02-22 21:46:58 -08:00