protected function disable() { $this->assertEquals($this->filter, $this->filterCollection->disable("test")); $this->assertContainsOnly($this->filter, $this->filterCollection->getDisabledFilters()); $this->assertEmpty($this->filterCollection->getEnabledFilters()); //checking double filter disabling $this->assertEquals($this->filter, $this->filterCollection->disable("test")); }
/** * Checks whether the Entity Manager has filters. * * @return boolean True, if the EM has a filter collection with enabled filters. */ public function hasFilters() { return null !== $this->filterCollection && $this->filterCollection->getEnabledFilters(); }