diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-06-27 23:08:11 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-06-27 23:08:11 -0400 |
commit | 7b9733f67208a97fbf05d34ea449126794f781df (patch) | |
tree | 26df273d216231e60669e462e72926a7bcfdea94 /tests | |
parent | ff030d43c34d606b557c6a9a44395b5382172746 (diff) |
Fix task filter issue
Diffstat (limited to 'tests')
-rw-r--r-- | tests/units/TaskFilterTest.php | 19 |
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); + } +} |