Add email notifications
This commit is contained in:
@@ -10,9 +10,9 @@ class CommentTest extends Base
|
||||
{
|
||||
public function testCreate()
|
||||
{
|
||||
$c = new Comment($this->db, $this->event);
|
||||
$t = new Task($this->db, $this->event);
|
||||
$p = new Project($this->db, $this->event);
|
||||
$c = new Comment($this->registry);
|
||||
$t = new Task($this->registry);
|
||||
$p = new Project($this->registry);
|
||||
|
||||
$this->assertEquals(1, $p->create(array('name' => 'test1')));
|
||||
$this->assertEquals(1, $t->create(array('title' => 'test', 'project_id' => 1, 'column_id' => 3, 'owner_id' => 1)));
|
||||
@@ -30,9 +30,9 @@ class CommentTest extends Base
|
||||
|
||||
public function testGetAll()
|
||||
{
|
||||
$c = new Comment($this->db, $this->event);
|
||||
$t = new Task($this->db, $this->event);
|
||||
$p = new Project($this->db, $this->event);
|
||||
$c = new Comment($this->registry);
|
||||
$t = new Task($this->registry);
|
||||
$p = new Project($this->registry);
|
||||
|
||||
$this->assertEquals(1, $p->create(array('name' => 'test1')));
|
||||
$this->assertEquals(1, $t->create(array('title' => 'test', 'project_id' => 1, 'column_id' => 3, 'owner_id' => 1)));
|
||||
@@ -51,9 +51,9 @@ class CommentTest extends Base
|
||||
|
||||
public function testUpdate()
|
||||
{
|
||||
$c = new Comment($this->db, $this->event);
|
||||
$t = new Task($this->db, $this->event);
|
||||
$p = new Project($this->db, $this->event);
|
||||
$c = new Comment($this->registry);
|
||||
$t = new Task($this->registry);
|
||||
$p = new Project($this->registry);
|
||||
|
||||
$this->assertEquals(1, $p->create(array('name' => 'test1')));
|
||||
$this->assertEquals(1, $t->create(array('title' => 'test', 'project_id' => 1, 'column_id' => 3, 'owner_id' => 1)));
|
||||
@@ -67,7 +67,7 @@ class CommentTest extends Base
|
||||
|
||||
public function testValidateCreation()
|
||||
{
|
||||
$c = new Comment($this->db, $this->event);
|
||||
$c = new Comment($this->registry);
|
||||
|
||||
$result = $c->validateCreation(array('user_id' => 1, 'task_id' => 1, 'comment' => 'bla'));
|
||||
$this->assertTrue($result[0]);
|
||||
@@ -96,7 +96,7 @@ class CommentTest extends Base
|
||||
|
||||
public function testValidateModification()
|
||||
{
|
||||
$c = new Comment($this->db, $this->event);
|
||||
$c = new Comment($this->registry);
|
||||
|
||||
$result = $c->validateModification(array('id' => 1, 'comment' => 'bla'));
|
||||
$this->assertTrue($result[0]);
|
||||
|
||||
Reference in New Issue
Block a user