Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 13 |
Ratio | 100 % |
Changes | 0 |
1 | <?php |
||
37 | public function testEnabledFilters() |
||
38 | { |
||
39 | $filterCollection = $this->entityManager->getFilters(); |
||
40 | $this->assertInstanceOf(FilterCollection::class, $filterCollection); |
||
41 | $this->assertCount(0, $filterCollection->getEnabledFilters()); |
||
42 | |||
43 | $this->filterManager->enableFilters(); |
||
44 | |||
45 | $this->assertCount(2, $filterCollection->getEnabledFilters()); |
||
46 | foreach ($filterCollection->getEnabledFilters() as $filter) { |
||
47 | $this->assertInstanceOf(FilterInterface::class, $filter); |
||
48 | } |
||
49 | } |
||
50 | |||
52 |