public function testGetSubscriptionsWithBadObject()
{
$this->event = $this->getMock('\\Elgg\\Notifications\\Event', array('getObject'), array(), '', false);
$this->event->expects($this->any())->method('getObject')->will($this->returnValue(null));
$service = new \Elgg\Notifications\SubscriptionsService($this->db);
$service->methods = array('one', 'two');
$this->assertEquals(array(), $service->getSubscriptions($this->event));
}