From b87eb9907d46870574833957762849c08a448455 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 26 Feb 2017 20:14:50 -0500 Subject: Order tasks in test case --- tests/units/Formatter/TaskListFormatterTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/units/Formatter/TaskListFormatterTest.php b/tests/units/Formatter/TaskListFormatterTest.php index f1b78a22..a6e44d38 100644 --- a/tests/units/Formatter/TaskListFormatterTest.php +++ b/tests/units/Formatter/TaskListFormatterTest.php @@ -4,6 +4,7 @@ use Kanboard\Formatter\TaskListFormatter; use Kanboard\Model\ProjectModel; use Kanboard\Model\TaskCreationModel; use Kanboard\Model\TaskFinderModel; +use Kanboard\Model\TaskModel; use Kanboard\Model\TaskTagModel; require_once __DIR__.'/../Base.php'; @@ -26,7 +27,7 @@ class TaskListFormatterTest extends Base $this->assertTrue($taskTagModel->save(1, 2, array('My tag 3'))); $listing = TaskListFormatter::getInstance($this->container) - ->withQuery($taskFinderModel->getExtendedQuery()) + ->withQuery($taskFinderModel->getExtendedQuery()->asc(TaskModel::TABLE.'.id')) ->format(); $this->assertCount(3, $listing); -- cgit v1.2.3