How do you approach unit testing Observers in Magento? (working with EcomDev_PHPUnit)
What kind of assertions do include?
- check if the event is being dispatched (
assertEventDispatched()
) - check the function with mock data
- ...
Ideally I would like to see other developers opinion regarding the approach and assertions made.