summaryrefslogtreecommitdiff
path: root/tests/units
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2017-02-26 20:14:50 -0500
committerFrederic Guillot <fred@kanboard.net>2017-02-26 20:14:50 -0500
commitb87eb9907d46870574833957762849c08a448455 (patch)
tree70921a1ef40fb9571b996fa915e2dd87610e3d5c /tests/units
parentf3deb6492a74f1ffa9e3391274e0ab7947a04016 (diff)
Order tasks in test case
Diffstat (limited to 'tests/units')
-rw-r--r--tests/units/Formatter/TaskListFormatterTest.php3
1 files changed, 2 insertions, 1 deletions
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);