Move slack, hipchat and jabber integrations to plugins

This commit is contained in:
Frederic Guillot
2015-10-17 22:19:49 -04:00
parent 9283fb88d8
commit 09da289c2f
68 changed files with 544 additions and 1644 deletions

View File

@@ -50,6 +50,22 @@ class UserNotificationTest extends Base
'notification_projects' => array(),
));
$this->container['userNotificationType']
->expects($this->at(0))
->method('getSelectedTypes')
->will($this->returnValue(array('email')));
$this->container['userNotificationType']
->expects($this->at(1))
->method('getSelectedTypes')
->will($this->returnValue(array('email')));
$this->container['userNotificationType']
->expects($this->at(2))
->method('getSelectedTypes')
->with($this->equalTo(1))
->will($this->returnValue(array('email', 'web')));
$settings = $n->readSettings(1);
$this->assertNotEmpty($settings);
$this->assertEquals(1, $settings['notifications_enabled']);
@@ -183,12 +199,17 @@ class UserNotificationTest extends Base
$this->container['userNotificationType']
->expects($this->at(0))
->method('getSelectedTypes')
->will($this->returnValue(array('email', 'web')));
$this->container['userNotificationType']
->expects($this->at(1))
->method('getType')
->with($this->equalTo('email'))
->will($this->returnValue($notifier));
$this->container['userNotificationType']
->expects($this->at(1))
->expects($this->at(2))
->method('getType')
->with($this->equalTo('web'))
->will($this->returnValue($notifier));