unregisterEvent() public method

See also: elgg_unregister_notification_event()
public unregisterEvent ( $type, $subtype )
 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()));
 }