From d47537baaa83c863e6207d32a1de010adc113c18 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Mon, 10 May 2010 11:07:12 +0200 Subject: [PATCH] Fix handler name. Still fails due to cyclic dependency work-around. --- framework/Alarm/test/Horde/Alarm/HandlerTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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'])); -- 2.11.0