예제 #1
0
 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"));
 }
예제 #2
0
 /**
  * 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();
 }