diff options
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); + } +} |