summaryrefslogtreecommitdiff
path: root/tests/units/Model
diff options
context:
space:
mode:
Diffstat (limited to 'tests/units/Model')
-rw-r--r--tests/units/Model/BoardTest.php1
-rw-r--r--tests/units/Model/ProjectActivityTest.php6
-rw-r--r--tests/units/Model/ProjectDailyStatsTest.php8
-rw-r--r--tests/units/Model/ProjectDuplicationTest.php5
-rw-r--r--tests/units/Model/ProjectPermissionTest.php9
-rw-r--r--tests/units/Model/SubtaskTimeTrackingTest.php9
-rw-r--r--tests/units/Model/SwimlaneTest.php4
-rw-r--r--tests/units/Model/TaskCreationTest.php12
-rw-r--r--tests/units/Model/TaskDuplicationTest.php1
-rw-r--r--tests/units/Model/TaskFinderTest.php2
-rw-r--r--tests/units/Model/TaskPositionTest.php1
-rw-r--r--tests/units/Model/TaskTest.php5
-rw-r--r--tests/units/Model/UserNotificationFilterTest.php8
-rw-r--r--tests/units/Model/UserNotificationTest.php1
-rw-r--r--tests/units/Model/UserTest.php14
-rw-r--r--tests/units/Model/UserUnreadNotificationTest.php5
16 files changed, 15 insertions, 76 deletions
diff --git a/tests/units/Model/BoardTest.php b/tests/units/Model/BoardTest.php
index bb0778ce..20665ac2 100644
--- a/tests/units/Model/BoardTest.php
+++ b/tests/units/Model/BoardTest.php
@@ -15,7 +15,6 @@ class BoardTest extends Base
public function testCreation()
{
$p = new Project($this->container);
- $b = new Board($this->container);
$columnModel = new Column($this->container);
$c = new Config($this->container);
diff --git a/tests/units/Model/ProjectActivityTest.php b/tests/units/Model/ProjectActivityTest.php
index a624cd86..16036cd4 100644
--- a/tests/units/Model/ProjectActivityTest.php
+++ b/tests/units/Model/ProjectActivityTest.php
@@ -21,9 +21,9 @@ class ProjectActivityTest extends Base
$this->assertEquals(1, $taskCreation->create(array('title' => 'Task #1', 'project_id' => 1)));
$this->assertEquals(2, $taskCreation->create(array('title' => 'Task #2', 'project_id' => 1)));
- $this->assertTrue($projectActivity->createEvent(1, 1, 1, Task::EVENT_CLOSE, array('task' => $taskFinder->getbyId(1))));
+ $this->assertTrue($projectActivity->createEvent(1, 1, 1, Task::EVENT_CLOSE, array('task' => $taskFinder->getById(1))));
$this->assertTrue($projectActivity->createEvent(1, 2, 1, Task::EVENT_UPDATE, array('task' => $taskFinder->getById(2))));
- $this->assertFalse($projectActivity->createEvent(1, 1, 0, Task::EVENT_OPEN, array('task' => $taskFinder->getbyId(1))));
+ $this->assertFalse($projectActivity->createEvent(1, 1, 0, Task::EVENT_OPEN, array('task' => $taskFinder->getById(1))));
$events = $projectActivity->getQuery()->desc('id')->findAll();
@@ -45,7 +45,7 @@ class ProjectActivityTest extends Base
$max = 15;
$nb_events = 100;
- $task = $taskFinder->getbyId(1);
+ $task = $taskFinder->getById(1);
for ($i = 0; $i < $nb_events; $i++) {
$this->assertTrue($projectActivity->createEvent(1, 1, 1, Task::EVENT_CLOSE, array('task' => $task)));
diff --git a/tests/units/Model/ProjectDailyStatsTest.php b/tests/units/Model/ProjectDailyStatsTest.php
index 60afc4c3..c3b20cb9 100644
--- a/tests/units/Model/ProjectDailyStatsTest.php
+++ b/tests/units/Model/ProjectDailyStatsTest.php
@@ -45,10 +45,10 @@ class ProjectDailyStatsTest extends Base
$this->assertEquals($expected[0]['day'], $metrics[0]['day']);
$this->assertEquals($expected[1]['day'], $metrics[1]['day']);
- $this->assertSame($expected[0]['avg_lead_time'], $metrics[0]['avg_lead_time'], '', 2);
- $this->assertSame($expected[1]['avg_lead_time'], $metrics[1]['avg_lead_time'], '', 2);
+ $this->assertEquals($expected[0]['avg_lead_time'], $metrics[0]['avg_lead_time'], '', 2);
+ $this->assertEquals($expected[1]['avg_lead_time'], $metrics[1]['avg_lead_time'], '', 2);
- $this->assertSame($expected[0]['avg_cycle_time'], $metrics[0]['avg_cycle_time'], '', 2);
- $this->assertSame($expected[1]['avg_cycle_time'], $metrics[1]['avg_cycle_time'], '', 2);
+ $this->assertEquals($expected[0]['avg_cycle_time'], $metrics[0]['avg_cycle_time'], '', 2);
+ $this->assertEquals($expected[1]['avg_cycle_time'], $metrics[1]['avg_cycle_time'], '', 2);
}
}
diff --git a/tests/units/Model/ProjectDuplicationTest.php b/tests/units/Model/ProjectDuplicationTest.php
index 14db80bf..4023a28f 100644
--- a/tests/units/Model/ProjectDuplicationTest.php
+++ b/tests/units/Model/ProjectDuplicationTest.php
@@ -205,7 +205,6 @@ class ProjectDuplicationTest extends Base
public function testCloneProjectWithUsers()
{
$p = new Project($this->container);
- $c = new Category($this->container);
$pp = new ProjectUserRole($this->container);
$u = new User($this->container);
$pd = new ProjectDuplication($this->container);
@@ -231,7 +230,6 @@ class ProjectDuplicationTest extends Base
public function testCloneProjectWithUsersAndOverrideOwner()
{
$p = new Project($this->container);
- $c = new Category($this->container);
$pp = new ProjectUserRole($this->container);
$u = new User($this->container);
$pd = new ProjectDuplication($this->container);
@@ -258,7 +256,6 @@ class ProjectDuplicationTest extends Base
public function testCloneTeamProjectToPrivatProject()
{
$p = new Project($this->container);
- $c = new Category($this->container);
$pp = new ProjectUserRole($this->container);
$u = new User($this->container);
$pd = new ProjectDuplication($this->container);
@@ -287,7 +284,6 @@ class ProjectDuplicationTest extends Base
public function testCloneProjectWithGroups()
{
$p = new Project($this->container);
- $c = new Category($this->container);
$pd = new ProjectDuplication($this->container);
$userModel = new User($this->container);
$groupModel = new Group($this->container);
@@ -420,7 +416,6 @@ class ProjectDuplicationTest extends Base
{
$p = new Project($this->container);
$pd = new ProjectDuplication($this->container);
- $s = new Swimlane($this->container);
$tc = new TaskCreation($this->container);
$tf = new TaskFinder($this->container);
diff --git a/tests/units/Model/ProjectPermissionTest.php b/tests/units/Model/ProjectPermissionTest.php
index 10fcdcc2..f88796b4 100644
--- a/tests/units/Model/ProjectPermissionTest.php
+++ b/tests/units/Model/ProjectPermissionTest.php
@@ -44,9 +44,6 @@ class ProjectPermissionTest extends Base
{
$userModel = new User($this->container);
$projectModel = new Project($this->container);
- $groupModel = new Group($this->container);
- $groupMemberModel = new GroupMember($this->container);
- $groupRoleModel = new ProjectGroupRole($this->container);
$userRoleModel = new ProjectUserRole($this->container);
$projectPermission = new ProjectPermission($this->container);
@@ -196,9 +193,6 @@ class ProjectPermissionTest extends Base
{
$userModel = new User($this->container);
$projectModel = new Project($this->container);
- $groupModel = new Group($this->container);
- $groupRoleModel = new ProjectGroupRole($this->container);
- $groupMemberModel = new GroupMember($this->container);
$userRoleModel = new ProjectUserRole($this->container);
$projectPermission = new ProjectPermission($this->container);
@@ -255,9 +249,6 @@ class ProjectPermissionTest extends Base
{
$userModel = new User($this->container);
$projectModel = new Project($this->container);
- $groupModel = new Group($this->container);
- $groupRoleModel = new ProjectGroupRole($this->container);
- $groupMemberModel = new GroupMember($this->container);
$userRoleModel = new ProjectUserRole($this->container);
$projectPermission = new ProjectPermission($this->container);
diff --git a/tests/units/Model/SubtaskTimeTrackingTest.php b/tests/units/Model/SubtaskTimeTrackingTest.php
index 2545dcb2..dead3887 100644
--- a/tests/units/Model/SubtaskTimeTrackingTest.php
+++ b/tests/units/Model/SubtaskTimeTrackingTest.php
@@ -48,7 +48,7 @@ class SubtaskTimeTrackingTest extends Base
$this->assertEquals(0, $subtasks[0]['timer_start_date']);
$this->assertFalse($subtasks[0]['is_timer_started']);
- $subtask = $s->getbyId(1, true);
+ $subtask = $s->getById(1, true);
$this->assertNotEmpty($subtask);
$this->assertEquals(0, $subtask['timer_start_date']);
$this->assertFalse($subtask['is_timer_started']);
@@ -61,7 +61,7 @@ class SubtaskTimeTrackingTest extends Base
$this->assertEquals(time(), $subtasks[0]['timer_start_date'], '', 3);
$this->assertTrue($subtasks[0]['is_timer_started']);
- $subtask = $s->getbyId(1, true);
+ $subtask = $s->getById(1, true);
$this->assertNotEmpty($subtask);
$this->assertEquals(time(), $subtask['timer_start_date'], '', 3);
$this->assertTrue($subtask['is_timer_started']);
@@ -73,7 +73,7 @@ class SubtaskTimeTrackingTest extends Base
$this->assertEquals(0, $subtasks[0]['timer_start_date']);
$this->assertFalse($subtasks[0]['is_timer_started']);
- $subtask = $s->getbyId(1, true);
+ $subtask = $s->getById(1, true);
$this->assertNotEmpty($subtask);
$this->assertEquals(0, $subtask['timer_start_date']);
$this->assertFalse($subtask['is_timer_started']);
@@ -145,7 +145,6 @@ class SubtaskTimeTrackingTest extends Base
$this->assertEquals(2, $s->create(array('title' => 'subtask #2', 'task_id' => 1, 'time_spent' => 1.1, 'time_estimated' => 4.4)));
$time = $st->calculateSubtaskTime(1);
- $this->assertNotempty($time);
$this->assertCount(2, $time);
$this->assertEquals(3.3, $time['time_spent'], 'Total spent', 0.01);
$this->assertEquals(7.7, $time['time_estimated'], 'Total estimated', 0.01);
@@ -179,12 +178,10 @@ class SubtaskTimeTrackingTest extends Base
$this->assertEquals(3600, $timesheet[1]['end'] - $timesheet[1]['start'], 'Wrong timestamps', 1);
$time = $st->calculateSubtaskTime(1);
- $this->assertNotempty($time);
$this->assertEquals(4.2, $time['time_spent'], 'Total spent', 0.01);
$this->assertEquals(0, $time['time_estimated'], 'Total estimated', 0.01);
$time = $st->calculateSubtaskTime(2);
- $this->assertNotempty($time);
$this->assertEquals(0, $time['time_spent'], 'Total spent', 0.01);
$this->assertEquals(0, $time['time_estimated'], 'Total estimated', 0.01);
}
diff --git a/tests/units/Model/SwimlaneTest.php b/tests/units/Model/SwimlaneTest.php
index 71c13e40..380d8c77 100644
--- a/tests/units/Model/SwimlaneTest.php
+++ b/tests/units/Model/SwimlaneTest.php
@@ -152,13 +152,13 @@ class SwimlaneTest extends Base
$this->assertEquals(1, $s->create(array('project_id' => 1, 'name' => 'Swimlane #1')));
$this->assertEquals(1, $tc->create(array('title' => 'test', 'project_id' => 1, 'swimlane_id' => 1)));
- $task = $tf->getbyId(1);
+ $task = $tf->getById(1);
$this->assertNotEmpty($task);
$this->assertEquals(1, $task['swimlane_id']);
$this->assertTrue($s->remove(1, 1));
- $task = $tf->getbyId(1);
+ $task = $tf->getById(1);
$this->assertNotEmpty($task);
$this->assertEquals(0, $task['swimlane_id']);
diff --git a/tests/units/Model/TaskCreationTest.php b/tests/units/Model/TaskCreationTest.php
index 04d23930..d6860b30 100644
--- a/tests/units/Model/TaskCreationTest.php
+++ b/tests/units/Model/TaskCreationTest.php
@@ -117,7 +117,6 @@ class TaskCreationTest extends Base
$task = $tf->getById(1);
$this->assertNotEmpty($task);
- $this->assertNotFalse($task);
$this->assertEquals(1, $task['id']);
$this->assertEquals('blue', $task['color_id']);
@@ -134,7 +133,6 @@ class TaskCreationTest extends Base
$task = $tf->getById(1);
$this->assertNotEmpty($task);
- $this->assertNotFalse($task);
$this->assertEquals(1, $task['id']);
$this->assertEquals(1, $task['owner_id']);
@@ -151,7 +149,6 @@ class TaskCreationTest extends Base
$task = $tf->getById(1);
$this->assertNotEmpty($task);
- $this->assertNotFalse($task);
$this->assertEquals(1, $task['id']);
$this->assertEquals(1, $task['category_id']);
@@ -168,7 +165,6 @@ class TaskCreationTest extends Base
$task = $tf->getById(1);
$this->assertNotEmpty($task);
- $this->assertNotFalse($task);
$this->assertEquals(1, $task['id']);
$this->assertEquals(1, $task['creator_id']);
@@ -187,7 +183,6 @@ class TaskCreationTest extends Base
$task = $tf->getById(1);
$this->assertNotEmpty($task);
- $this->assertNotFalse($task);
$this->assertEquals(1, $task['id']);
$this->assertEquals(1, $task['creator_id']);
@@ -204,7 +199,6 @@ class TaskCreationTest extends Base
$task = $tf->getById(1);
$this->assertNotEmpty($task);
- $this->assertNotFalse($task);
$this->assertEquals(1, $task['id']);
$this->assertEquals(2, $task['column_id']);
@@ -222,7 +216,6 @@ class TaskCreationTest extends Base
$task = $tf->getById(1);
$this->assertNotEmpty($task);
- $this->assertNotFalse($task);
$this->assertEquals(1, $task['id']);
$this->assertEquals(2, $task['column_id']);
@@ -232,7 +225,6 @@ class TaskCreationTest extends Base
$task = $tf->getById(2);
$this->assertNotEmpty($task);
- $this->assertNotFalse($task);
$this->assertEquals(2, $task['id']);
$this->assertEquals(2, $task['column_id']);
@@ -250,7 +242,6 @@ class TaskCreationTest extends Base
$task = $tf->getById(1);
$this->assertNotEmpty($task);
- $this->assertNotFalse($task);
$this->assertEquals(1, $task['id']);
$this->assertEquals('test', $task['description']);
@@ -267,7 +258,6 @@ class TaskCreationTest extends Base
$task = $tf->getById(1);
$this->assertNotEmpty($task);
- $this->assertNotFalse($task);
$this->assertEquals(1, $task['id']);
$this->assertEquals('test', $task['reference']);
@@ -350,7 +340,6 @@ class TaskCreationTest extends Base
$task = $tf->getById(1);
$this->assertNotEmpty($task);
- $this->assertNotFalse($task);
$this->assertEquals(1, $task['id']);
$this->assertEquals(1.5, $task['time_estimated']);
@@ -368,7 +357,6 @@ class TaskCreationTest extends Base
$task = $tf->getById(1);
$this->assertNotEmpty($task);
- $this->assertNotFalse($task);
}
public function testScore()
diff --git a/tests/units/Model/TaskDuplicationTest.php b/tests/units/Model/TaskDuplicationTest.php
index c4b36e45..8c5f5cec 100644
--- a/tests/units/Model/TaskDuplicationTest.php
+++ b/tests/units/Model/TaskDuplicationTest.php
@@ -664,7 +664,6 @@ class TaskDuplicationTest extends Base
$tc = new TaskCreation($this->container);
$tf = new TaskFinder($this->container);
$p = new Project($this->container);
- $c = new Category($this->container);
$dp = new DateParser($this->container);
$this->assertEquals(1, $p->create(array('name' => 'test1')));
diff --git a/tests/units/Model/TaskFinderTest.php b/tests/units/Model/TaskFinderTest.php
index 859a9ea6..ef9d7830 100644
--- a/tests/units/Model/TaskFinderTest.php
+++ b/tests/units/Model/TaskFinderTest.php
@@ -44,7 +44,7 @@ class TaskFinderTest extends Base
$tasks = $tf->getOverdueTasksByProject(1);
$this->assertNotEmpty($tasks);
$this->assertTrue(is_array($tasks));
- $this->assertcount(1, $tasks);
+ $this->assertCount(1, $tasks);
$this->assertEquals('Task #1', $tasks[0]['title']);
}
diff --git a/tests/units/Model/TaskPositionTest.php b/tests/units/Model/TaskPositionTest.php
index 28145a66..0f2e4b88 100644
--- a/tests/units/Model/TaskPositionTest.php
+++ b/tests/units/Model/TaskPositionTest.php
@@ -283,7 +283,6 @@ class TaskPositionTest extends Base
$this->assertEquals($counter, $tc->create($task));
$task = $tf->getById($counter);
- $this->assertNotFalse($task);
$this->assertNotEmpty($task);
$this->assertEquals($i, $task['position']);
}
diff --git a/tests/units/Model/TaskTest.php b/tests/units/Model/TaskTest.php
index 60e752e5..e9815b83 100644
--- a/tests/units/Model/TaskTest.php
+++ b/tests/units/Model/TaskTest.php
@@ -4,11 +4,7 @@ require_once __DIR__.'/../Base.php';
use Kanboard\Model\Task;
use Kanboard\Model\TaskCreation;
-use Kanboard\Model\TaskFinder;
-use Kanboard\Model\TaskStatus;
use Kanboard\Model\Project;
-use Kanboard\Model\Category;
-use Kanboard\Model\User;
class TaskTest extends Base
{
@@ -16,7 +12,6 @@ class TaskTest extends Base
{
$t = new Task($this->container);
$tc = new TaskCreation($this->container);
- $tf = new TaskFinder($this->container);
$p = new Project($this->container);
$this->assertEquals(1, $p->create(array('name' => 'UnitTest')));
diff --git a/tests/units/Model/UserNotificationFilterTest.php b/tests/units/Model/UserNotificationFilterTest.php
index 924f0883..73c7d905 100644
--- a/tests/units/Model/UserNotificationFilterTest.php
+++ b/tests/units/Model/UserNotificationFilterTest.php
@@ -48,10 +48,10 @@ class UserNotificationFilterTest extends Base
$n = new UserNotificationFilter($this->container);
$this->assertEquals(2, $u->create(array('username' => 'user1', 'notifications_filter' => UserNotificationFilter::FILTER_NONE)));
- $this->assertTrue($n->filterNone($u->getById(2), array()));
+ $this->assertTrue($n->filterNone($u->getById(2)));
$this->assertEquals(3, $u->create(array('username' => 'user2', 'notifications_filter' => UserNotificationFilter::FILTER_BOTH)));
- $this->assertFalse($n->filterNone($u->getById(3), array()));
+ $this->assertFalse($n->filterNone($u->getById(3)));
}
public function testFilterCreator()
@@ -126,7 +126,6 @@ class UserNotificationFilterTest extends Base
{
$u = new User($this->container);
$n = new UserNotificationFilter($this->container);
- $p = new Project($this->container);
$this->assertEquals(2, $u->create(array('username' => 'user2', 'notifications_filter' => UserNotificationFilter::FILTER_NONE)));
@@ -137,7 +136,6 @@ class UserNotificationFilterTest extends Base
{
$u = new User($this->container);
$n = new UserNotificationFilter($this->container);
- $p = new Project($this->container);
$this->assertEquals(2, $u->create(array('username' => 'user2', 'notifications_filter' => UserNotificationFilter::FILTER_ASSIGNEE)));
@@ -149,7 +147,6 @@ class UserNotificationFilterTest extends Base
{
$u = new User($this->container);
$n = new UserNotificationFilter($this->container);
- $p = new Project($this->container);
$this->assertEquals(2, $u->create(array('username' => 'user2', 'notifications_filter' => UserNotificationFilter::FILTER_CREATOR)));
@@ -161,7 +158,6 @@ class UserNotificationFilterTest extends Base
{
$u = new User($this->container);
$n = new UserNotificationFilter($this->container);
- $p = new Project($this->container);
$this->assertEquals(2, $u->create(array('username' => 'user2', 'notifications_filter' => UserNotificationFilter::FILTER_BOTH)));
diff --git a/tests/units/Model/UserNotificationTest.php b/tests/units/Model/UserNotificationTest.php
index 42db54b4..a15fe226 100644
--- a/tests/units/Model/UserNotificationTest.php
+++ b/tests/units/Model/UserNotificationTest.php
@@ -14,7 +14,6 @@ use Kanboard\Model\ProjectUserRole;
use Kanboard\Model\ProjectGroupRole;
use Kanboard\Model\UserNotification;
use Kanboard\Model\UserNotificationFilter;
-use Kanboard\Subscriber\UserNotificationSubscriber;
use Kanboard\Core\Security\Role;
class UserNotificationTest extends Base
diff --git a/tests/units/Model/UserTest.php b/tests/units/Model/UserTest.php
index 7501f2e0..b53acb7d 100644
--- a/tests/units/Model/UserTest.php
+++ b/tests/units/Model/UserTest.php
@@ -246,45 +246,33 @@ class UserTest extends Base
$this->assertFalse($u->create(array('username' => 'user #1')));
$user = $u->getById(1);
- $this->assertNotFalse($user);
- $this->assertTrue(is_array($user));
$this->assertEquals('admin', $user['username']);
$this->assertEquals('', $user['name']);
$this->assertEquals(Role::APP_ADMIN, $user['role']);
$this->assertEquals(0, $user['is_ldap_user']);
$user = $u->getById(2);
- $this->assertNotFalse($user);
- $this->assertTrue(is_array($user));
$this->assertEquals('user #1', $user['username']);
$this->assertEquals('User', $user['name']);
$this->assertEquals(Role::APP_USER, $user['role']);
$this->assertEquals(0, $user['is_ldap_user']);
$user = $u->getById(3);
- $this->assertNotFalse($user);
- $this->assertTrue(is_array($user));
$this->assertEquals('user #2', $user['username']);
$this->assertEquals('', $user['name']);
$this->assertEquals(Role::APP_USER, $user['role']);
$this->assertEquals(1, $user['is_ldap_user']);
$user = $u->getById(4);
- $this->assertNotFalse($user);
- $this->assertTrue(is_array($user));
$this->assertEquals('user #3', $user['username']);
$this->assertEquals(Role::APP_MANAGER, $user['role']);
$user = $u->getById(5);
- $this->assertNotFalse($user);
- $this->assertTrue(is_array($user));
$this->assertEquals('user #4', $user['username']);
$this->assertEquals('', $user['gitlab_id']);
$this->assertEquals(Role::APP_ADMIN, $user['role']);
$user = $u->getById(6);
- $this->assertNotFalse($user);
- $this->assertTrue(is_array($user));
$this->assertEquals('user #5', $user['username']);
$this->assertEquals('1234', $user['gitlab_id']);
$this->assertEquals(Role::APP_USER, $user['role']);
@@ -300,8 +288,6 @@ class UserTest extends Base
$this->assertTrue($u->update(array('id' => 3, 'gitlab_id' => '')));
$user = $u->getById(2);
- $this->assertNotFalse($user);
- $this->assertTrue(is_array($user));
$this->assertEquals('biloute', $user['username']);
$this->assertEquals('Toto', $user['name']);
$this->assertEquals(Role::APP_USER, $user['role']);
diff --git a/tests/units/Model/UserUnreadNotificationTest.php b/tests/units/Model/UserUnreadNotificationTest.php
index 918ab411..843b7860 100644
--- a/tests/units/Model/UserUnreadNotificationTest.php
+++ b/tests/units/Model/UserUnreadNotificationTest.php
@@ -4,7 +4,6 @@ require_once __DIR__.'/../Base.php';
use Kanboard\Model\TaskFinder;
use Kanboard\Model\TaskCreation;
-use Kanboard\Model\User;
use Kanboard\Model\Task;
use Kanboard\Model\Project;
use Kanboard\Model\UserUnreadNotification;
@@ -17,7 +16,6 @@ class UserUnreadNotificationTest extends Base
$p = new Project($this->container);
$tf = new TaskFinder($this->container);
$tc = new TaskCreation($this->container);
- $u = new User($this->container);
$this->assertEquals(1, $p->create(array('name' => 'test')));
$this->assertEquals(1, $tc->create(array('title' => 'test', 'project_id' => 1)));
@@ -35,7 +33,6 @@ class UserUnreadNotificationTest extends Base
$p = new Project($this->container);
$tf = new TaskFinder($this->container);
$tc = new TaskCreation($this->container);
- $u = new User($this->container);
$this->assertEquals(1, $p->create(array('name' => 'test')));
$this->assertEquals(1, $tc->create(array('title' => 'test', 'project_id' => 1)));
@@ -55,7 +52,6 @@ class UserUnreadNotificationTest extends Base
$p = new Project($this->container);
$tf = new TaskFinder($this->container);
$tc = new TaskCreation($this->container);
- $u = new User($this->container);
$this->assertEquals(1, $p->create(array('name' => 'test')));
$this->assertEquals(1, $tc->create(array('title' => 'test', 'project_id' => 1)));
@@ -77,7 +73,6 @@ class UserUnreadNotificationTest extends Base
$p = new Project($this->container);
$tf = new TaskFinder($this->container);
$tc = new TaskCreation($this->container);
- $u = new User($this->container);
$this->assertEquals(1, $p->create(array('name' => 'test')));
$this->assertEquals(1, $tc->create(array('title' => 'test', 'project_id' => 1)));