public function testGetSubscriptionsWithProperInput()
 {
     $methods = array('apples', 'bananas');
     $queryResult = array($this->createObjectFromArray(array('guid' => '22', 'methods' => 'notifyapples')), $this->createObjectFromArray(array('guid' => '567', 'methods' => 'notifybananas,notifyapples')));
     $subscriptions = array(22 => array('apples'), 567 => array('bananas', 'apples'));
     $this->db->expects($this->once())->method('getData')->will($this->returnValue($queryResult));
     $service = new \Elgg\Notifications\SubscriptionsService($this->db);
     $service->methods = $methods;
     $this->assertEquals($subscriptions, $service->getSubscriptions($this->event));
 }