summaryrefslogtreecommitdiff
path: root/tests/units/TaskFilterTest.php
blob: 1872d429762f4630cad57d7399f0af40fc345740 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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);
    }
}