FilamentF
Filament2y ago
CGM

Testing Form Wizards

I'm attempting to test a form wizard's->beforeValidation() call (as part of Wizard\Step) in a test, but I don't know how to 'forward' the wizard to the correct step. Is there a way to move a test forward to 'step 2' in a unit test so I can test functions like ->afterValidation() and ->beforeValidation()?

I can't seem to get code in those methods to fire at all during tests.
Was this page helpful?