@@ 22-35 (lines=14) @@ | ||
19 | $this->assertFalse($filter->isToDateEnabled()); |
|
20 | } |
|
21 | ||
22 | public function testWithFromColumnToColumnFilters() |
|
23 | { |
|
24 | $filtersArray = [ |
|
25 | 'fromColumn' => 'fromColumn', |
|
26 | 'toColumn' => 'toColumn' |
|
27 | ]; |
|
28 | $filter = Filter::createFromArray($filtersArray); |
|
29 | ||
30 | $this->assertTrue($filter->isFromColumnEnabled()); |
|
31 | $this->assertTrue($filter->isToColumnEnabled()); |
|
32 | ||
33 | $this->assertEquals('fromColumn', $filter->getFromColumn()); |
|
34 | $this->assertEquals('toColumn', $filter->getToColumn()); |
|
35 | } |
|
36 | ||
37 | public function testWithFromDateToDateFilters() |
|
38 | { |
|
@@ 37-50 (lines=14) @@ | ||
34 | $this->assertEquals('toColumn', $filter->getToColumn()); |
|
35 | } |
|
36 | ||
37 | public function testWithFromDateToDateFilters() |
|
38 | { |
|
39 | $filtersArray = [ |
|
40 | 'fromDate' => 'fromDate', |
|
41 | 'toDate' => 'toDate' |
|
42 | ]; |
|
43 | $filter = Filter::createFromArray($filtersArray); |
|
44 | ||
45 | $this->assertTrue($filter->isFromDateEnabled()); |
|
46 | $this->assertTrue($filter->isToDateEnabled()); |
|
47 | ||
48 | $this->assertEquals('fromDate', $filter->getFromDate()); |
|
49 | $this->assertEquals('toDate', $filter->getToDate()); |
|
50 | } |
|
51 | } |