summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-10-14 22:02:35 -0400
committerFrédéric Guillot <fred@kanboard.net>2014-10-14 22:02:35 -0400
commit286b1935663ef3071ad6a0aae3078ad3a42b48e4 (patch)
tree80469612ac9feba9bea28c1ac7f263e680f52d49 /tests
parentd0e6d2e1f177cfe533ea7819bf79b0469b8d0cc2 (diff)
Add a dashboard (first version)
Diffstat (limited to 'tests')
-rw-r--r--tests/units/ProjectActivityTest.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/units/ProjectActivityTest.php b/tests/units/ProjectActivityTest.php
index 2565b6e7..7e7841dd 100644
--- a/tests/units/ProjectActivityTest.php
+++ b/tests/units/ProjectActivityTest.php
@@ -24,7 +24,7 @@ class ProjectActivityTest extends Base
$this->assertTrue($e->createEvent(1, 2, 1, Task::EVENT_UPDATE, array('task' => $tf->getById(2))));
$this->assertFalse($e->createEvent(1, 1, 0, Task::EVENT_OPEN, array('task' => $tf->getbyId(1))));
- $events = $e->getAll(1);
+ $events = $e->getProject(1);
$this->assertNotEmpty($events);
$this->assertTrue(is_array($events));
@@ -50,7 +50,7 @@ class ProjectActivityTest extends Base
$this->assertTrue($e->createEvent(1, 1, 1, Task::EVENT_UPDATE, array('task' => $tf->getbyId(1))));
}
- $events = $e->getAll(1);
+ $events = $e->getProject(1);
$this->assertNotEmpty($events);
$this->assertTrue(is_array($events));
@@ -80,7 +80,7 @@ class ProjectActivityTest extends Base
$this->assertEquals($nb_events, $this->registry->shared('db')->table('project_activities')->count());
$e->cleanup($max);
- $events = $e->getAll(1);
+ $events = $e->getProject(1);
$this->assertNotEmpty($events);
$this->assertTrue(is_array($events));