summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-06-27 23:08:11 -0400
committerFrederic Guillot <fred@kanboard.net>2015-06-27 23:08:11 -0400
commit7b9733f67208a97fbf05d34ea449126794f781df (patch)
tree26df273d216231e60669e462e72926a7bcfdea94 /tests
parentff030d43c34d606b557c6a9a44395b5382172746 (diff)
Fix task filter issue
Diffstat (limited to 'tests')
-rw-r--r--tests/units/TaskFilterTest.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/units/TaskFilterTest.php b/tests/units/TaskFilterTest.php
new file mode 100644
index 00000000..1872d429
--- /dev/null
+++ b/tests/units/TaskFilterTest.php
@@ -0,0 +1,19 @@
+<?php
+
+require_once __DIR__.'/Base.php';
+
+use Model\TaskFilter;
+
+class TaskFilterTest extends Base
+{
+ public function testCopy()
+ {
+ $tf = new TaskFilter($this->container);
+ $filter1 = $tf->create();
+ $filter2 = $tf->copy();
+
+ $this->assertTrue($filter1 !== $filter2);
+ $this->assertTrue($filter1->query !== $filter2->query);
+ $this->assertTrue($filter1->query->condition !== $filter2->query->condition);
+ }
+}