Message of the day:
Welcome to SilverStripe | Current stable: https://goo.gl/C4F1T9 | Feature requests: https://goo.gl/EcQ34L | Community Forum: https://forum.silverstripe.org | StripeCon EU 2019! https://stripecon.eu
If you have any SilverStripe related questions, please supply the version of Framework you're using.
Did you flush? 🚽 =
my doSubmit($data, $form) function, yeah?
Also, it saves you from running through the entire form for every test, you just throw your dataset at the handler (which should be public or reflected via ReflectionClass();)
That's not a unit test (a unit covers a bunch of methods/classes), but a functional, specifically for one form.
Ah, I'd go with a functional test for that. Feed a bunch of different datasets to the handling function and test if the data is saved as expected.
php processing of the form
Define backend scenarios?
Find someone with some experience with Behat near you, and within 5 minutes, you are probably up to speed.
ok, and what about the backend scenarios?
Also, install SilverStripe-Behat, which has a lot of default behaviours and even Email-sending to test with Behat 😉