I'm firing an event from my controller and I want to assert that it is fired in the IntegrationTestCase
. I tried using the assertEventFired()
method but I get an error:
The event manager you are asserting against is not configured to track events.
I don't see how I can get an instance of the controller to do $controller->eventManager()->setEventList(new EventList());
to enable event tracking.
Is it possible to do this with IntegrationTestCase or do I need to build the controller manually as its done in the core test suite for Cake\Controller\Controller
?
cakephp 3.3.15