MageTest/Mage-Test — pull request #16 by ajbonner (2014-02-07 11:30:34+00:00)
Title: Support fine grained control over event dispatch during testing

I added this code to my local version of mage-test to allow me to better control event dispatch during the execution of testcases.

It is pretty easy to use, and it uses observername to control which observers will fire during event dispatch. In combination with the disableEvent / renableEvent methods added previously, this allows great control over event dispatch.

```php
whitelistObserver('mnspromotion_publish_doubleclick_campaign');

// this will explicitly disable the named observer. In blacklist mode, all events not explicitly blacklisted will
// receive events
Mage::getConfig()->blacklistObserver('catalog_add_topmenu_items');

// does what is says on the tin..
Mage::getConfig()->disableAllEvents()