Brady Wetherington
251080d5b8
Make tests pass, at least to start with. Still needs cleanup
2024-06-06 17:12:26 +01:00
Brady Wetherington
d2b7828569
This is a squashed branch of all of the various commits that make up the new HasCustomFields trait.
...
This should allow us to add custom fields to just about anything we want to within Snipe-IT.
Below are the commits that have been squashed together:
Initial decoupling of custom field behavior from Assets for re-use
Add new DB columns to Custom Fields and fieldsets for 'type'
WIP: trying to figure out UI for custom fields for things other than Assets, find problematic places
Real progress towards getting to where this stuff might actually work...
Fix the table-name determining code for Custom Fields
Getting it closer to where Assets at least work
Rename the trait to it's new, even better name
Solid progress on the new Trait!
WIP: HasCustomFields, still working some stuff out
Got some basics working; creating custom fields and stuff
HasCustomFields now validates and saves
Starting to yank the other boilerplate code as things start to work (!)
Got the start of defaultValuesForCustomField() working
More progress (squash me!)
Add migrations for default_values_for_custom_fields table
WIP: more towards hasCustomFields trait
Progress cleaning up the PR, fixing FIXME's
New, passing HasCustomFieldsTrait test!
Fix date formatter helper for custom fields
Fixed more FIXME's
2024-06-06 13:35:38 +01:00
snipe
bc36c8074e
Merge pull request #14807 from bryanlopezinc/AddTestToCheckEnvVisibility
...
Added test for .env visibility for setup page
2024-06-05 09:50:54 +01:00
Marcus Moore
e98c3f92c1
Update domain name
2024-06-04 10:49:29 -07:00
Marcus Moore
d202dfc225
Organize API tests into domains
2024-06-04 10:48:53 -07:00
Marcus Moore
b1e8e5389b
Make most test names singular
2024-06-03 16:54:59 -07:00
Marcus Moore
95f6381da4
Update tests names to VerbNounTest
2024-06-03 16:53:15 -07:00
Marcus Moore
b07e3b4a91
Remove API from test class name
2024-06-03 16:50:56 -07:00
Marcus Moore
86bd9a2674
Move test method to existing test
2024-06-03 16:49:44 -07:00
Marcus Moore
29a36839aa
Move existing API checkin and checkout tests under domain directory
2024-06-03 16:29:53 -07:00
bryanlopezinc
89e50b94d3
Fix Failing sqlite test
2024-06-03 08:09:05 +01:00
snipe
67fb3f10d5
Tightened up tests with better checks
...
Signed-off-by: snipe <snipe@snipe.net>
2024-06-01 04:24:47 +01:00
snipe
ea8d390596
MOAR TESTS
...
Signed-off-by: snipe <snipe@snipe.net>
2024-06-01 04:01:09 +01:00
snipe
52af8afac2
Added company scoping test
...
Signed-off-by: snipe <snipe@snipe.net>
2024-06-01 03:10:29 +01:00
snipe
c09e93e288
Updated delete users API tests, moved non-API tests
...
Signed-off-by: snipe <snipe@snipe.net>
2024-06-01 02:59:04 +01:00
snipe
dd0a16c3d5
Added tests
...
Signed-off-by: snipe <snipe@snipe.net>
2024-05-31 20:42:32 +01:00
bryanlopezinc
c63c17d49f
Added test for .env visibility for setup page
2024-05-31 17:33:57 +01:00
snipe
45cfec5b29
Merge pull request #14797 from bryanlopezinc/AddTestsForSettings
...
Added test for setup page
2024-05-31 02:31:35 +01:00
bryanlopezinc
404ee238a3
Added test for setup page
2024-05-30 14:37:24 +01:00
snipe
f6fe6e70b9
Merge branch 'develop' into redirect_back_to_asset
2024-05-30 13:38:11 +01:00
snipe
13db151297
Fixed deprecation warning on category test
...
Signed-off-by: snipe <snipe@snipe.net>
2024-05-29 11:06:51 +01:00
Marcus Moore
71bab2c315
Improve test case
2024-05-28 13:02:44 -07:00
snipe
33d5d5e24f
Added tests
...
Signed-off-by: snipe <snipe@snipe.net>
2024-05-28 15:21:13 +01:00
Brady Wetherington
8df9007a8e
Merge branch 'snipeit_v7_laravel10' into develop
2024-05-27 18:08:27 +01:00
Marcus Moore
d06e5f25b0
Remove old trait from test
2024-05-23 11:51:08 -07:00
Marcus Moore
482ebfbb68
Implement test
2024-05-22 17:21:29 -07:00
Marcus Moore
67c4fa2966
Improve event assertions
2024-05-22 17:14:10 -07:00
Marcus Moore
a3389a31cd
Update test name and add todo
2024-05-22 17:10:16 -07:00
Marcus Moore
8d74a976a1
Merge branch 'develop' into chore/sc-25103/add-tests-around-asset-checkout
2024-05-22 16:09:27 -07:00
Marcus Moore
f16c79bb9a
Improve event assertions
2024-05-22 15:38:23 -07:00
Marcus Moore
1fe22e4b7b
Re-order scenarios
2024-05-22 13:33:41 -07:00
Marcus Moore
c7fa2c04ad
Add scenario
2024-05-22 13:33:12 -07:00
Marcus Moore
8ca882d1c8
Complete a scenario
2024-05-22 13:23:49 -07:00
Marcus Moore
5d368990dc
Fix assertion
2024-05-22 13:15:51 -07:00
Brady Wetherington
4adbd7af4c
Merge branch 'develop' into snipeit_v7_laravel10
2024-05-22 21:02:11 +01:00
Marcus Moore
1935a4aca3
Improve scenario naming
2024-05-22 12:47:33 -07:00
snipe
6fad085a7d
Removed debug in test
...
Signed-off-by: snipe <snipe@snipe.net>
2024-05-22 12:37:49 +01:00
snipe
4b23ef4021
Added new test
...
Signed-off-by: snipe <snipe@snipe.net>
2024-05-22 12:35:03 +01:00
snipe
e1eb457f3d
Update tests/Feature/Api/Users/UpdateUserApiTest.php
...
Co-authored-by: Marcus Moore <contact@marcusmoore.io>
2024-05-22 11:03:46 +01:00
snipe
51025aad57
Update tests/Feature/Api/Users/UpdateUserApiTest.php
...
Co-authored-by: Marcus Moore <contact@marcusmoore.io>
2024-05-22 11:03:38 +01:00
snipe
14c4765be2
Update tests/Feature/Api/Users/UpdateUserApiTest.php
...
Co-authored-by: Marcus Moore <contact@marcusmoore.io>
2024-05-22 11:00:52 +01:00
snipe
3afe996755
Update tests/Feature/Api/Users/UpdateUserApiTest.php
...
Co-authored-by: Marcus Moore <contact@marcusmoore.io>
2024-05-22 11:00:47 +01:00
snipe
0891bd747a
Update tests/Feature/Api/Users/UpdateUserApiTest.php
...
Co-authored-by: Marcus Moore <contact@marcusmoore.io>
2024-05-22 11:00:31 +01:00
Godfrey M
0327e71f0f
made message the keys, cleaned up array
2024-05-21 13:26:29 -07:00
Godfrey M
69c2cf2c4f
fixed assetcheckin test, created redirect option test
2024-05-21 13:13:25 -07:00
snipe
e3561ad38e
Added tests
...
Signed-off-by: snipe <snipe@snipe.net>
2024-05-21 09:56:57 +01:00
Brady Wetherington
f633dbba64
Merge branch 'develop' into snipeit_v7_laravel10
2024-05-20 12:55:29 +01:00
snipe
72c85f93b6
Fixed test
...
Signed-off-by: snipe <snipe@snipe.net>
2024-05-15 16:47:45 +01:00
snipe
eb09a99eb0
Merge pull request #14707 from spencerrlongg/bug/sc-24912
...
Bulk Edit Tests and Tweaks
2024-05-15 11:22:31 +01:00
spencerrlongg
5b86ee7291
a couple more tests
2024-05-07 17:19:00 -05:00