From f6319e295bc92a3f137a72a5d258b7e257864acf Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 12 Mar 2017 23:26:38 -0400 Subject: Make sure that tasks are sorted in test case --- tests/units/Pagination/DashboardPaginationTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/units') diff --git a/tests/units/Pagination/DashboardPaginationTest.php b/tests/units/Pagination/DashboardPaginationTest.php index 92b5ac6f..6b0a40fb 100644 --- a/tests/units/Pagination/DashboardPaginationTest.php +++ b/tests/units/Pagination/DashboardPaginationTest.php @@ -63,7 +63,7 @@ class DashboardPaginationTest extends Base $this->assertTrue($projectUserRoleModel->addUser(1, 2, Role::PROJECT_MEMBER)); $this->assertTrue($projectUserRoleModel->addUser(2, 2, Role::PROJECT_MEMBER)); - $this->assertEquals(1, $taskCreationModel->create(array('title' => 'Task #1', 'project_id' => 2))); + $this->assertEquals(1, $taskCreationModel->create(array('title' => 'Task #1', 'project_id' => 2, 'priority' => 3))); $this->assertEquals(2, $taskCreationModel->create(array('title' => 'Task #2', 'project_id' => 1, 'column_id' => 2, 'owner_id' => 2))); $this->assertEquals(3, $taskCreationModel->create(array('title' => 'Task #3', 'project_id' => 2, 'owner_id' => 2))); -- cgit v1.2.3