snipe-it/app/Http/Controllers/Api
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
..
AccessoriesController.php API improvements 2017-03-11 10:05:50 -08:00
AssetModelsController.php Basic sanity checking on some of the API controllers 2017-03-11 08:03:16 -08:00
AssetsController.php Fixes for ordering on asset listing 2017-05-15 20:55:39 -07:00
CategoriesController.php Basic sanity checking on some of the API controllers 2017-03-11 08:03:16 -08:00
CompaniesController.php Basic sanity checking on some of the API controllers 2017-03-11 08:03:16 -08:00
ComponentsController.php /api_tests: Completed tests for basic CRUD for Assets and Components (#3426) 2017-03-31 13:48:11 -07:00
ConsumablesController.php Narrowed down the accessories, consumables, etc APIs for manufacturer filtering 2017-03-11 02:49:24 -08:00
CustomFieldsController.php Basic sanity checking on some of the API controllers 2017-03-11 08:03:16 -08:00
DepartmentsController.php Set dept manager ID for dept 2017-05-23 02:46:25 -07:00
DepreciationsController.php Basic sanity checking on some of the API controllers 2017-03-11 08:03:16 -08:00
GroupsController.php Groups API starter 2017-02-01 18:50:28 -08:00
ImportController.php Importer fixes v2 (#3524) 2017-05-03 12:14:35 -07:00
LicensesController.php Licenses detail view 2017-05-18 22:10:45 -07:00
LocationsController.php Add in location parent and child information into API requests (#3582) 2017-05-16 12:30:11 -07:00
ManufacturersController.php Fixes #3311 - more fields for manufacturers 2017-03-10 22:08:59 -08:00
ReportsController.php Fixes presenter issue on user history 2017-06-08 19:09:42 -07:00
SettingsController.php Starter API controllers 2017-01-12 19:40:20 -08:00
StatuslabelsController.php Depreciations API 2017-02-01 17:59:03 -08:00
SuppliersController.php Fixes #3602 - actions missing from suppliers in v4 2017-05-31 06:52:37 -07:00
UsersController.php [WIP] Improvements to unit tests. (#3574) 2017-06-12 17:39:03 -07:00