Commit graph

626 commits

Author SHA1 Message Date
Marcus Moore 3f07f682de
Migrate existing tests to TestsPermissionsRequirement 2024-09-16 16:35:21 -07:00
Marcus Moore a629df07bf
Implement interfaces on existing test classes 2024-09-16 14:49:08 -07:00
Marcus Moore 9a13fcab23
Pluralize 2024-09-16 14:38:38 -07:00
Marcus Moore f5705a1dde
More unification 2024-09-16 14:34:55 -07:00
Marcus Moore f325c4afdb
Unify assertion method 2024-09-16 14:32:38 -07:00
Marcus Moore 1fddacd7d0
Re-order test methods 2024-09-16 14:25:11 -07:00
Marcus Moore 4af893df61
Improve assertions 2024-09-16 14:20:24 -07:00
Marcus Moore b8b3f91ce4
Formatting 2024-09-16 13:55:18 -07:00
Marcus Moore 7f40f55343
Add tests for delete supplier endpoint 2024-09-16 13:52:02 -07:00
Marcus Moore b06e8d442d
Add tests for delete status label endpoint 2024-09-16 13:37:08 -07:00
Marcus Moore c269184c60
Add tests for delete predefined kit endpoint 2024-09-16 13:29:41 -07:00
Marcus Moore 53c673dee2
Add tests for delete manufacturer endpoint 2024-09-16 13:13:12 -07:00
Marcus Moore 50730fc4fb
Add tests for delete location endpoint 2024-09-16 12:37:18 -07:00
Marcus Moore 60a54cee79
Add tests for delete license endpoint 2024-09-16 12:33:30 -07:00
Marcus Moore 446e962a50
Add tests for delete group endpoint 2024-09-16 10:38:51 -07:00
Marcus Moore 79a4bb7316
Add tests for delete depreciation endpoint 2024-09-16 10:35:44 -07:00
Marcus Moore 2f76c1bc5b
Add assertion 2024-09-16 10:33:21 -07:00
Marcus Moore 38b9f4a438
Add tests for delete departments endpoint 2024-09-16 10:29:20 -07:00
Marcus Moore 3105f53aff
Add tests for delete custom fieldsets endpoint 2024-09-12 16:54:29 -07:00
Marcus Moore 2047cfed09
Add tests for delete custom fields endpoint 2024-09-12 16:20:32 -07:00
Marcus Moore e3268d32df
Add tests for delete consumable endpoint 2024-09-12 16:00:02 -07:00
Marcus Moore 6df8b0ac0e
Add tests for delete component endpoint 2024-09-12 15:52:07 -07:00
Marcus Moore 910f13c1f7
Add tests for delete companies endpoint 2024-09-12 15:38:30 -07:00
Marcus Moore 8ce2512f55
Add tests for delete category endpoint 2024-09-12 13:54:44 -07:00
Marcus Moore 0ec415d4d0
Clean up 2024-09-12 13:46:22 -07:00
Marcus Moore 2044570e95
Add tests for delete asset model endpoint 2024-09-12 13:39:36 -07:00
Marcus Moore b336c6273d
Pluralize test classes 2024-09-12 13:32:42 -07:00
Marcus Moore 872b76b45f
Add tests for delete asset maintenance endpoint 2024-09-12 13:29:10 -07:00
Marcus Moore 275cf4630e
Add tests for delete asset endpoint 2024-09-12 13:16:37 -07:00
Marcus Moore 5c2660bd34
Introduce interface 2024-09-12 13:02:32 -07:00
Marcus Moore c7ae9d9dfa
Add tests for delete accessory endpoint 2024-09-12 12:58:47 -07:00
snipe a97530367d Fixed tests again
Signed-off-by: snipe <snipe@snipe.net>
2024-09-11 17:29:22 +01:00
snipe 43250ae881 Updated tests
Signed-off-by: snipe <snipe@snipe.net>
2024-09-11 17:04:09 +01:00
snipe 04e96b8f20 Added tests
Signed-off-by: snipe <snipe@snipe.net>
2024-09-11 16:43:41 +01:00
snipe 6f44441a8b
Merge pull request #15469 from marcusmoore/accessory_tests
Added UI tests for creating accessories
2024-09-10 11:04:23 +01:00
snipe e7e5dfbdfa
Merge pull request #15470 from marcusmoore/company_tests
Added UI tests for creating companies
2024-09-10 11:04:08 +01:00
snipe d62315fbe4
Merge pull request #15472 from marcusmoore/testing/dashboard_counts
Added test for dashboard counts
2024-09-10 11:03:55 +01:00
Marcus Moore 76c9015aa9
Add test case 2024-09-09 16:51:40 -07:00
Marcus Moore 5d5f421294
Add test case 2024-09-09 16:49:43 -07:00
Marcus Moore 0820dd9da4
Update test names 2024-09-09 14:36:32 -07:00
Marcus Moore aa6ab2df60
Add permission tests for some accessory api endpoints 2024-09-09 14:35:38 -07:00
Marcus Moore 22a2cc0256
Add test for dashboard counts 2024-09-09 13:21:10 -07:00
Marcus Moore d4426e4686
Add simple tests for company creation via UI 2024-09-09 11:03:00 -07:00
Marcus Moore 010f66f4c9
Add validation test 2024-09-04 15:48:11 -07:00
Marcus Moore 9c6718b459
Organize 2024-09-04 15:46:35 -07:00
Marcus Moore 9f832a93c9
Ensure user is stored 2024-09-04 15:44:52 -07:00
Marcus Moore 487d88c012
Add some ui tests for accessories 2024-09-04 15:43:01 -07:00
snipe 9fe8a866e0 Updated test
Signed-off-by: snipe <snipe@snipe.net>
2024-09-02 19:07:21 +01:00
snipe e8e3060a75 Added tests
Signed-off-by: snipe <snipe@snipe.net>
2024-09-02 18:51:22 +01:00
snipe b64ed254e0 Fixed tests
Signed-off-by: snipe <snipe@snipe.net>
2024-08-29 13:49:09 +01:00
Brady Wetherington ec2ea955d8 Fix PATCH of purchase_cost for assets for comma as decimal separator 2024-08-29 12:35:14 +01:00
snipe c197644ba7
Merge pull request #15284 from spencerrlongg/bug/sc-26584
[Multi-Company] Fixes Users Being Moved With Items Still Assigned
2024-08-29 11:38:15 +01:00
snipe d635c86e00 Added tests
Signed-off-by: snipe <snipe@snipe.net>
2024-08-28 12:46:30 +01:00
Marcus Moore af0a95be12
Simplify assertions 2024-08-22 10:18:23 -07:00
Marcus Moore 663b2fd844
Add test case 2024-08-22 10:18:23 -07:00
Marcus Moore bcace9d019
Point test to correct endpoint 2024-08-22 10:18:23 -07:00
Marcus Moore b59bf3e7dc
Add failing test 2024-08-22 10:18:23 -07:00
r-xyz 4ec361c718
Add AssetModel files endpoints to API 2024-08-21 19:49:51 +02:00
snipe 74fbc23823 Updated tests
Signed-off-by: snipe <snipe@snipe.net>
2024-08-21 10:09:35 +01:00
snipe a23dee52f2 Added tests
Signed-off-by: snipe <snipe@snipe.net>
2024-08-21 09:58:47 +01:00
Marcus Moore fa765667f2
Merge branch 'develop' into livewire-importer-improvements 2024-08-19 14:41:58 -07:00
snipe 318aff1ef0 Fixed behavior for null model numbers
Signed-off-by: snipe <snipe@snipe.net>
2024-08-17 00:27:44 +01:00
snipe e96b9b2f4f Added test for models with same name but no model number
Signed-off-by: snipe <snipe@snipe.net>
2024-08-16 23:04:11 +01:00
snipe 5529669884 Added tests
Signed-off-by: snipe <snipe@snipe.net>
2024-08-16 22:44:03 +01:00
spencerrlongg dec4691c73 should be good to go now 2024-08-16 12:50:09 -05:00
snipe 3167ee91d1 Added a setting test and validation on settings
Signed-off-by: snipe <snipe@snipe.net>
2024-08-16 10:51:49 +01:00
Marcus Moore 94d8a547b8
Merge branch 'develop' into livewire-importer-improvements 2024-08-15 13:47:49 -07:00
spencerrlongg 9622e05cf5 correct api test 2024-08-14 18:41:06 -05:00
spencerrlongg afaf53cdfc failing ui test 2024-08-14 18:14:21 -05:00
snipe 4b690e8e1f Updated test to check for nulling
Signed-off-by: snipe <snipe@snipe.net>
2024-08-14 10:01:56 +01:00
Marcus Moore 3f8ac59f4c
Reference the entry in the components_assets table 2024-08-13 15:31:16 -07:00
Marcus Moore ae0a6d66f3
Update tests
https://masteringlaravel.io/daily/2024-02-09-watch-out-for-this-when-testing-artisan-commands
2024-08-13 12:16:08 -07:00
Marcus Moore 321839e074
Fix namespace 2024-08-13 12:14:56 -07:00
snipe c163d6774f
Merge pull request #15198 from spencerrlongg/feature/add_trait_to_request
Add MayContainCustomFields Trait to Asset Update Request
2024-08-13 14:12:52 +01:00
snipe 9d354ca657
Merge pull request #15266 from uberbrady/checkout_to_fixer
Checkout-to fixer
2024-08-12 16:34:19 +01:00
Brady Wetherington f80cf666b1 Mark tests as incomplete for the new artisan assigned_to fixer 2024-08-12 13:46:56 +01:00
snipe 76b114d820 Added test
Signed-off-by: snipe <snipe@snipe.net>
2024-08-10 18:21:41 +01:00
snipe 07b1e3fb90 Fixed tests
Signed-off-by: snipe <snipe@snipe.net>
2024-08-10 16:55:48 +01:00
snipe f76fbe75e0
Merge pull request #15221 from marcusmoore/fixes/bulk-checkin-logging
Some checks failed
Crowdin Action / upload-sources-to-crowdin (push) Has been cancelled
Docker images (Alpine) / docker (push) Has been cancelled
Docker images / docker (push) Has been cancelled
Tests in MySQL / PHP ${{ matrix.php-version }} (8.1) (push) Has been cancelled
Tests in MySQL / PHP ${{ matrix.php-version }} (8.2) (push) Has been cancelled
Tests in MySQL / PHP ${{ matrix.php-version }} (8.3) (push) Has been cancelled
Tests in SQLite / PHP ${{ matrix.php-version }} (8.1.1) (push) Has been cancelled
Fixed accessories and consumables not being logged correctly during bulk check-in
2024-08-08 10:43:59 +01:00
snipe cc1e356c35
Merge pull request #15232 from marcusmoore/shift-126036
Some checks are pending
Crowdin Action / upload-sources-to-crowdin (push) Waiting to run
Docker images (Alpine) / docker (push) Waiting to run
Docker images / docker (push) Waiting to run
Tests in MySQL / PHP ${{ matrix.php-version }} (8.1) (push) Waiting to run
Tests in MySQL / PHP ${{ matrix.php-version }} (8.2) (push) Waiting to run
Tests in MySQL / PHP ${{ matrix.php-version }} (8.3) (push) Waiting to run
Tests in SQLite / PHP ${{ matrix.php-version }} (8.1.1) (push) Waiting to run
Updated PHPUnit to v10
2024-08-08 01:23:07 +01:00
Marcus Moore 6521c02526
Merge branch 'develop' into livewire-importer-improvements
# Conflicts:
#	resources/views/livewire/importer.blade.php
2024-08-07 15:20:39 -07:00
Marcus Moore 4a2d2f7336
Improve variable name 2024-08-07 13:32:30 -07:00
Marcus Moore 41437e4d8f
Merge branch 'develop' into fixes/bulk-checkin-logging
# Conflicts:
#	app/Http/Controllers/Users/BulkUsersController.php
2024-08-07 13:06:59 -07:00
Brady Wetherington 1706ddd511 working fixup script, but failing tests. But I have tests! 2024-08-07 16:06:00 +01:00
Marcus Moore a220986d16
Switch to snake case 2024-08-06 16:13:51 -07:00
Marcus Moore 2a8ac81eed
Fix namespace 2024-08-06 15:22:13 -07:00
snipe 766b370264
Merge pull request #15229 from marcusmoore/bug/sc-26552
Some checks are pending
Crowdin Action / upload-sources-to-crowdin (push) Waiting to run
Docker images (Alpine) / docker (push) Waiting to run
Docker images / docker (push) Waiting to run
Tests in MySQL / PHP ${{ matrix.php-version }} (8.1) (push) Waiting to run
Tests in MySQL / PHP ${{ matrix.php-version }} (8.2) (push) Waiting to run
Tests in MySQL / PHP ${{ matrix.php-version }} (8.3) (push) Waiting to run
Tests in SQLite / PHP ${{ matrix.php-version }} (8.1.1) (push) Waiting to run
Disallowed checking out components to different companies and fixed number remaining counts
2024-08-06 21:33:55 +01:00
Marcus Moore 3e832e5e94
Revert "Define test classes as final"
This reverts commit 95516b0343.
2024-08-06 13:31:17 -07:00
Marcus Moore 82e795b642
Revert "Add return types to test methods"
This reverts commit 83fb6826ee.
2024-08-06 13:30:34 -07:00
Shift 95516b0343
Define test classes as final 2024-08-06 20:25:22 +00:00
Shift 83fb6826ee
Add return types to test methods 2024-08-06 20:25:22 +00:00
Shift b1e92ab866
Declare data providers as static 2024-08-06 20:25:21 +00:00
Shift 96241cb67c
Adopt PHP attributes in test classes 2024-08-06 20:25:21 +00:00
Marcus Moore 84e447af09
Fix test namespaces 2024-08-06 13:21:36 -07:00
Marcus Moore 0aff35b622
Scaffold additional failed tests 2024-08-06 12:07:34 -07:00
Marcus Moore 374812f8fe
Add failing test 2024-08-06 10:48:38 -07:00
Marcus Moore 94e00b8a3e
Use new accessory checkout relationship 2024-08-05 17:26:11 -07:00
Marcus Moore f2b78d18a4
Merge branch 'develop' into fixes/bulk-checkin-logging
# Conflicts:
#	app/Http/Controllers/Users/BulkUsersController.php
2024-08-05 17:25:54 -07:00
Marcus Moore 35e7a3163c
Implement test case 2024-08-05 16:54:31 -07:00
Marcus Moore 96fafa6952
Improve readability 2024-08-05 16:36:29 -07:00