summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-06-24 15:43:34 -0400
committerFrederic Guillot <fred@kanboard.net>2016-06-24 15:43:34 -0400
commit18cb7ad0a4a96be63030f5207b74a195c8b6cd6c (patch)
tree719898528a9df56f6d8ea4abaee54b9542e3d434 /tests
parentb2e92480c29acb15586bc8ea305c8416927a667c (diff)
Expose tags to the user interface (first prototype)
Diffstat (limited to 'tests')
-rw-r--r--tests/units/Filter/TaskTagFilterTest.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/units/Filter/TaskTagFilterTest.php b/tests/units/Filter/TaskTagFilterTest.php
index a36d3475..72ed9904 100644
--- a/tests/units/Filter/TaskTagFilterTest.php
+++ b/tests/units/Filter/TaskTagFilterTest.php
@@ -4,6 +4,7 @@ use Kanboard\Filter\TaskTagFilter;
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';
@@ -32,7 +33,7 @@ class TaskTagFilterTest extends Base
$filter->withValue('my tag 3');
$filter->apply();
- $tasks = $query->findAll();
+ $tasks = $query->asc(TaskModel::TABLE.'.title')->findAll();
$this->assertCount(2, $tasks);
$this->assertEquals('test1', $tasks[0]['title']);
$this->assertEquals('test2', $tasks[1]['title']);
@@ -113,7 +114,7 @@ class TaskTagFilterTest extends Base
$filter->withValue('my tag');
$filter->apply();
- $tasks = $query->findAll();
+ $tasks = $query->asc(TaskModel::TABLE.'.title')->findAll();
$this->assertCount(2, $tasks);
$this->assertEquals('test1', $tasks[0]['title']);
$this->assertEquals('test2', $tasks[1]['title']);