If I do Mage::app()->disableEvents(); then assertEventDispatched* does not detect any events. But if I don't disable events, then I have to manually account for the effects of every observer.
This pull request allows EcomDev to track events that would have been dispatched, without actually dispatching the events. It is compatible with the existing behavior because anyone who was using disableEvents/enableEvents before would not have been using assertEventDispatched before.
If I do
Mage::app()->disableEvents();
thenassertEventDispatched*
does not detect any events. But if I don't disable events, then I have to manually account for the effects of every observer.This pull request allows EcomDev to track events that would have been dispatched, without actually dispatching the events. It is compatible with the existing behavior because anyone who was using
disableEvents/enableEvents
before would not have been usingassertEventDispatched
before.Signed-off-by: Michael A. Smith msmith3@ebay.com