public function testGetEmailSubject() { $n = new Notification($this->container); $this->assertEquals('[test][Task opened] blah (#2)', $n->getMailSubject('task.open', array('task' => array('id' => 2, 'title' => 'blah', 'project_name' => 'test')))); }