Filters collection on equality of boolean properties. The value is specified as one of ( "true" | "false" | "1" | "0" ) in the query. For each property passed, if the resource does not have such property or if the value is not one of ( "true" | "false" | "1" | "0" ) the property is ignored.
Author: Amrouche Hamza (hamza.simperfit@gmail.com)
Author: Teoh Han Hui (teohhanhui@gmail.com)
Inheritance: extends AbstractFilter
Ejemplo n.º 1
0
 public function testGetDescriptionDefaultFields()
 {
     $filter = new BooleanFilter($this->managerRegistry, new RequestStack());
     $this->assertEquals(['dummyBoolean' => ['property' => 'dummyBoolean', 'type' => 'bool', 'required' => false]], $filter->getDescription($this->resourceClass));
 }