From: Jan Schneider Date: Mon, 10 May 2010 09:07:12 +0000 (+0200) Subject: Fix handler name. Still fails due to cyclic dependency work-around. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=d47537baaa83c863e6207d32a1de010adc113c18;p=horde.git Fix handler name. Still fails due to cyclic dependency work-around. --- diff --git a/framework/Alarm/test/Horde/Alarm/HandlerTest.php b/framework/Alarm/test/Horde/Alarm/HandlerTest.php index 979059290..0b668554e 100644 --- a/framework/Alarm/test/Horde/Alarm/HandlerTest.php +++ b/framework/Alarm/test/Horde/Alarm/HandlerTest.php @@ -30,14 +30,14 @@ class Horde_Alarm_HandlerTest extends PHPUnit_Framework_TestCase self::$alarm->set($hash); } - public function testNotification() + public function testNotify() { $alarm = self::$alarm->get('personalalarm', 'john'); - $alarm['methods'] = array('notification'); + $alarm['methods'] = array('notify'); self::$alarm->set($alarm); $storage = new Horde_Notification_Storage_Object(); - $handler = new Horde_Alarm_Handler_Notification(array('notification' => new Horde_Notification_Handler($storage))); - self::$alarm->addHandler('notification', $handler); + $handler = new Horde_Alarm_Handler_Notify(array('notification' => new Horde_Notification_Handler($storage))); + self::$alarm->addHandler('notify', $handler); self::$alarm->notify('john', false); $this->assertEquals(1, count($storage->notifications['_unattached']));