Brady Wetherington
8902145288
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
2023-08-28 13:07:33 +01:00
Marcus Moore
60baaae192
Remove unused test bootstrap file
2023-08-09 16:22:58 -07:00
Brady Wetherington
e648da9dc5
Also do a sanity-check that the normal asset autoincrementing works
2023-07-12 16:51:23 +01:00
Brady Wetherington
76191a09ed
Improvements to asset_tag auto-incrementing, with auto-fixups for gaps
2023-07-12 16:39:45 +01:00
Marcus Moore
6585aa0cf0
Add unit tests for company scoping
2023-06-06 16:31:14 -07:00
snipe
b716f9f55e
Merge pull request #12916 from snipe/features/auto_add_to_fieldset
...
Added ability to auto-add fields to new fieldsets
2023-05-03 11:04:33 -07:00
Marcus Moore
da08f6ef8c
Add InteractsWithSettings trait to required tests
2023-05-01 16:05:26 -07:00
snipe
4a063d23b9
We don’t actually use this test?
...
Signed-off-by: snipe <snipe@snipe.net >
2023-04-25 19:36:52 -07:00
Marcus Moore
099ec3f550
Remove creation of category within category factory state
2023-03-13 16:45:43 -07:00
Marcus Moore
dd9c00195b
Remove old $tester variable and usused imports
2023-03-07 17:04:46 -08:00
Marcus Moore
43ff7261b2
Remove redundant base test case
2023-03-07 16:57:55 -08:00
Marcus Moore
8fad377114
Remove helper methods by inlining where needed
2023-03-07 10:28:33 -08:00
Marcus Moore
a3c8c3757a
Remove unused method
2023-03-06 17:50:44 -08:00
Marcus Moore
bc54144284
Fix test by passing proper user
2023-03-06 12:40:47 -08:00
Marcus Moore
e8da6d8bac
Set purchase date in correct format
2023-03-02 13:47:58 -08:00
Marcus Moore
45d7e9b134
Switch to using LazilyRefreshDatabase in unit test suite
2023-03-02 13:13:30 -08:00
Marcus Moore
4f9ebf6cde
Fix array key
2023-02-07 16:40:27 -08:00
Marcus Moore
787f619a6b
Standardize test method syntax
2023-02-07 16:28:40 -08:00
Marcus Moore
505ca48da2
Remove test method without assertions
2023-02-07 16:17:36 -08:00
Marcus Moore
6b8c0f9e88
Make BaseTest abstract
2023-02-07 16:17:16 -08:00
Marcus Moore
6dbcec2310
Exclude Dusk tests from phpunit test suite
2023-02-07 16:16:39 -08:00
snipe
66ed311914
Fixed asset maintenances test
...
Signed-off-by: snipe <snipe@snipe.net >
2021-12-02 20:14:39 -08:00
snipe
f334bf1058
Fixed notification tests
...
Signed-off-by: snipe <snipe@snipe.net >
2021-12-02 20:01:03 -08:00
snipe
0104f35f31
Fixed Component Test, commented Consumables
...
Signed-off-by: snipe <snipe@snipe.net >
2021-12-02 19:43:15 -08:00
snipe
222ee8e0bf
Slight refactor on depreciation test
...
Signed-off-by: snipe <snipe@snipe.net >
2021-12-02 19:36:07 -08:00
snipe
0e3bafd5b4
Fixed depreciation tests
...
Signed-off-by: snipe <snipe@snipe.net >
2021-12-02 19:19:42 -08:00
snipe
17bc562ac4
Commented out broken permissions and importer tests for now
...
Signed-off-by: snipe <snipe@snipe.net >
2021-12-02 19:19:35 -08:00
snipe
1e46fde5e2
Fixed status labels tests
...
Signed-off-by: snipe <snipe@snipe.net >
2021-12-02 19:01:57 -08:00
snipe
872bd29cb3
Removed repetitive tests
...
Signed-off-by: snipe <snipe@snipe.net >
2021-12-02 18:27:52 -08:00
snipe
21e2504f79
Trying unsuccessfully to get nested factories working
...
Signed-off-by: snipe <snipe@snipe.net >
2021-12-02 17:38:28 -08:00
snipe
5a01fff79c
Use the Setting model for basetest
...
Signed-off-by: snipe <snipe@snipe.net >
2021-12-02 17:37:51 -08:00
snipe
390e8a6cc3
Fixed company unit test
...
Signed-off-by: snipe <snipe@snipe.net >
2021-12-02 16:43:03 -08:00
snipe
b0d2fc787a
Fixed accessory test
...
Signed-off-by: snipe <snipe@snipe.net >
2021-12-02 16:33:16 -08:00
snipe
35ba28bff9
Continuing to refactor tests
...
Signed-off-by: snipe <snipe@snipe.net >
2021-12-02 16:14:45 -08:00
snipe
c2709be4a1
Removed pointless tests
...
Signed-off-by: snipe <snipe@snipe.net >
2021-12-02 16:14:23 -08:00
snipe
c949a1f5f2
renamed Tests to tests
2021-12-02 15:08:26 -08:00