public function testUnregisterEvent() { $this->setupServices(); $object = $this->getTestObject(); $this->notifications->registerEvent($object->getType(), $object->getSubtype()); $this->assertTrue($this->notifications->unregisterEvent($object->getType(), $object->getSubtype())); $events = array($object->getType() => array()); $this->assertEquals($events, $this->notifications->getEvents()); $this->assertFalse($this->notifications->unregisterEvent($object->getType(), $object->getSubtype())); }