9c823119e3
Added new factories for user custom field permissions
...
Signed-off-by: snipe <snipe@snipe.net >
2025-08-17 13:31:14 +01:00
ef35a0f2f1
Fixed #10284 : Added mobile phone to users
...
Signed-off-by: snipe <snipe@snipe.net >
2025-08-11 18:38:22 +01:00
5abd2c7151
Added tests
...
Signed-off-by: snipe <snipe@snipe.net >
2025-07-07 13:12:16 +01:00
c344c40310
Added auditAssets() to user factory
...
Signed-off-by: snipe <snipe@snipe.net >
2025-04-07 22:10:36 +01:00
e0e08f284e
Add tests for creating and patching companies via api
2025-03-27 10:54:42 -07:00
e2f643e7ed
Backfill tests
2025-03-11 13:46:21 -07:00
e807cfab86
Merge branch 'develop' into importTests
2024-09-30 12:47:52 +01:00
0b3f458561
Added tests for Import feature
2024-09-30 12:42:41 +01:00
f53b852dff
Make created_by equal one in the seeder
...
Signed-off-by: snipe <snipe@snipe.net >
2024-09-20 13:53:52 +01:00
7f40f55343
Add tests for delete supplier endpoint
2024-09-16 13:52:02 -07:00
b06e8d442d
Add tests for delete status label endpoint
2024-09-16 13:37:08 -07:00
c269184c60
Add tests for delete predefined kit endpoint
2024-09-16 13:29:41 -07:00
53c673dee2
Add tests for delete manufacturer endpoint
2024-09-16 13:13:12 -07:00
50730fc4fb
Add tests for delete location endpoint
2024-09-16 12:37:18 -07:00
79a4bb7316
Add tests for delete depreciation endpoint
2024-09-16 10:35:44 -07:00
38b9f4a438
Add tests for delete departments endpoint
2024-09-16 10:29:20 -07:00
3105f53aff
Add tests for delete custom fieldsets endpoint
2024-09-12 16:54:29 -07:00
2047cfed09
Add tests for delete custom fields endpoint
2024-09-12 16:20:32 -07:00
910f13c1f7
Add tests for delete companies endpoint
2024-09-12 15:38:30 -07:00
8ce2512f55
Add tests for delete category endpoint
2024-09-12 13:54:44 -07:00
2044570e95
Add tests for delete asset model endpoint
2024-09-12 13:39:36 -07:00
d4426e4686
Add simple tests for company creation via UI
2024-09-09 11:03:00 -07:00
6521c02526
Merge branch 'develop' into livewire-importer-improvements
...
# Conflicts:
# resources/views/livewire/importer.blade.php
2024-08-07 15:20:39 -07:00
256e989ba1
Add test for importer
2024-07-15 15:49:18 -07:00
6f29c0a7cf
Merge branch 'refs/heads/develop' into bug/sc-24884
...
# Conflicts:
# routes/api.php
2024-07-02 15:48:39 -05:00
d27bde6047
Added deleted factory for tests
...
Signed-off-by: snipe <snipe@snipe.net >
2024-06-22 18:36:24 +01:00
8ce577db37
adds @snipe's rules for undeleted assigned targets
2024-05-23 15:51:26 -05:00
02d35449d2
Updated seeder with en to en-US
...
Signed-off-by: snipe <snipe@snipe.net >
2023-12-24 19:41:48 +00:00
90e75a3e2c
Add unique() to some factory properties
2023-09-19 17:02:18 -07:00
5b86c02366
Set permissions to empty object in user factory
2023-08-10 16:55:44 -07:00
41479b1ec7
Allow permissions in the user factory to be chained
2023-08-10 16:35:10 -07:00
1405e17251
Add simple test around custom asset report response
2023-08-08 17:10:36 -07:00
346ace9444
Allow users that have permission to edit their own location to see locations in select list
2023-07-13 17:37:46 -07:00
27d4d107bb
Scaffold test before removing scopeCompanyables call from DepartmentsController
2023-06-07 16:10:29 -07:00
d648e9a01c
Added Google test user
...
Signed-off-by: snipe <snipe@snipe.net >
2023-05-10 09:13:34 -07:00
582c3b987b
Update some faker calls
2023-03-16 16:38:21 -07:00
345946d6d4
Remove default department relationship from user factory
2023-03-16 13:25:02 -07:00
76861c0c30
Remove hard-coded manager_id in factory
2023-03-16 12:46:47 -07:00
b944945377
Remove hard-coded company_id in factories and update seeders
2023-03-15 14:12:34 -07:00
ba5b835933
Lock seeder to english
...
Signed-off-by: snipe <snipe@snipe.net >
2022-01-12 13:10:29 -08:00
390e8a6cc3
Fixed company unit test
...
Signed-off-by: snipe <snipe@snipe.net >
2021-12-02 16:43:03 -08:00
ed2797afdd
Small fixes
...
Signed-off-by: snipe <snipe@snipe.net >
2021-12-01 23:33:20 -08:00
d96e95abd6
Small mods to configs, removed old faker, added new
...
Signed-off-by: snipe <snipe@snipe.net >
2021-12-01 13:46:21 -08:00
f3f6a04c43
Use hash::
...
Signed-off-by: snipe <snipe@snipe.net >
2021-11-30 20:46:20 -08:00
7cbdf2c727
A few seeder fixes
...
Signed-off-by: snipe <snipe@snipe.net >
2021-09-23 22:16:19 -07:00
b30bbe1740
Fixed more factories
...
Signed-off-by: snipe <snipe@snipe.net >
2021-06-11 19:41:20 -07:00
b62d1f49e4
Shift cleanup
2021-06-10 20:19:27 +00:00
104b441e0d
Shift to class based factories
2021-06-10 20:17:44 +00:00
934afa036f
Adopt Laravel coding style
...
Shift automatically applies the Laravel coding style - which uses the PSR-2 coding style as a base with some minor additions.
You may customize the adopted coding style by adding your own [PHP CS Fixer][1] `.php_cs` config file to your project root. Feel free to use [Shift's Laravel ruleset][2] to help you get started.
[1]: https://github.com/FriendsOfPHP/PHP-CS-Fixer
[2]: https://gist.github.com/laravel-shift/cab527923ed2a109dda047b97d53c200
2021-06-10 20:15:52 +00:00
7de8f71f58
Api tests ( #5096 )
...
* Use the formated date helper to clean up verifications.
* Add Checkin/Checkout api tests.
* Accessories api test
* Add Companies API Test.
* Return ModelNotFound as a 404.
* Cleanups/simplficiations/updates.
* Locations api test.
* currency and image should be fillable on location.
* Update components api test.
* Use findOrFail so we return a 404 instead of a 200. Matches other item types.
* order_number should be fillable in component.
* Add updated_at and permissions to information returned from api for a user.
* Add users test and flesh out factory and fillable fields.
* Add test for assets method
* API status label test.
* Disable php7.2 for now on travis until the count(null) issues are remedied
* Add serial to update.
* API model not found should return a 200
2018-02-24 19:01:34 -08:00