I am writing unittests for my controllers that also handle form-submits.
everything is working fine so far. I am using the library laminas-test to dispatch the requests.
Now I added a csrf-element to my form but I don’t know how to get the csrf-token so that I am able to dispatch a request with a valid token to test this behaviour too.
Is there any way to do this with the component “laminas-test” or any other way?