snipe-it/app/Http/Controllers
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
..
Api [WIP] Improvements to unit tests. (#3574) 2017-06-12 17:39:03 -07:00
Auth Update all controllers to use laravel 5 return view method 2017-06-09 16:44:03 -07:00
AccessoriesController.php Update all controllers to use laravel 5 return view method 2017-06-09 16:44:03 -07:00
ActionlogController.php Discussion: Moving to policies for controller based authorization (#3080) 2016-12-19 11:04:28 -08:00
AssetMaintenancesController.php Update all controllers to use laravel 5 return view method 2017-06-09 16:44:03 -07:00
AssetModelsController.php Update all controllers to use laravel 5 return view method 2017-06-09 16:44:03 -07:00
AssetsController.php Use updated view method for laravel 5 2017-06-09 16:31:25 -07:00
CategoriesController.php Update all controllers to use laravel 5 return view method 2017-06-09 16:44:03 -07:00
CompaniesController.php Update all controllers to use laravel 5 return view method 2017-06-09 16:44:03 -07:00
ComponentsController.php Update all controllers to use laravel 5 return view method 2017-06-09 16:44:03 -07:00
ConsumablesController.php Update all controllers to use laravel 5 return view method 2017-06-09 16:44:03 -07:00
Controller.php Updated docblocks 2016-04-07 13:21:09 -07:00
CustomFieldsController.php Update all controllers to use laravel 5 return view method 2017-06-09 16:44:03 -07:00
CustomFieldsetsController.php Update all controllers to use laravel 5 return view method 2017-06-09 16:44:03 -07:00
DashboardController.php Update all controllers to use laravel 5 return view method 2017-06-09 16:44:03 -07:00
DepartmentsController.php Create, edit and destroy for depts 2017-05-23 02:47:25 -07:00
DepreciationsController.php Update all controllers to use laravel 5 return view method 2017-06-09 16:44:03 -07:00
GroupsController.php Update all controllers to use laravel 5 return view method 2017-06-09 16:44:03 -07:00
LicensesController.php Update all controllers to use laravel 5 return view method 2017-06-09 16:44:03 -07:00
LocationsController.php Update all controllers to use laravel 5 return view method 2017-06-09 16:44:03 -07:00
ManufacturersController.php Update all controllers to use laravel 5 return view method 2017-06-09 16:44:03 -07:00
ProfileController.php Update all controllers to use laravel 5 return view method 2017-06-09 16:44:03 -07:00
ReportsController.php Update all controllers to use laravel 5 return view method 2017-06-09 16:44:03 -07:00
SettingsController.php Update all controllers to use laravel 5 return view method 2017-06-09 16:44:03 -07:00
StatuslabelsController.php Update all controllers to use laravel 5 return view method 2017-06-09 16:44:03 -07:00
SuppliersController.php Update all controllers to use laravel 5 return view method 2017-06-09 16:44:03 -07:00
UsersController.php Patches #3640 to develop 2017-06-12 15:31:11 -07:00
ViewAssetsController.php Update all controllers to use laravel 5 return view method 2017-06-09 16:44:03 -07:00