diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-06-24 15:43:34 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-06-24 15:43:34 -0400 |
commit | 18cb7ad0a4a96be63030f5207b74a195c8b6cd6c (patch) | |
tree | 719898528a9df56f6d8ea4abaee54b9542e3d434 /tests | |
parent | b2e92480c29acb15586bc8ea305c8416927a667c (diff) |
Expose tags to the user interface (first prototype)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/units/Filter/TaskTagFilterTest.php | 5 |
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']); |