public function testSortByNotEqualKo() { $condition = new App_ListFilter_Rule_Condition_SortBy(); $condition->setOperator(App_ListFilter_Rule_Condition_SortBy::EQUAL); $condition->setComparedValue('pepito'); $condition->setInverted(true); $this->assertFalse($condition->apply($this->listfilter)); }
public function testAndOperatorKo3() { $condition = new App_ListFilter_Rule_Condition_SortBy(); $condition->setComparedValue('manolito'); $condition->setOperator(App_ListFilter_Rule_Condition_SortBy::EQUAL); $condition->setInverted(false); $this->andCondition->addCondition($condition); $condition = new App_ListFilter_Rule_Condition_GroupBy(); $condition->setComparedValue('pepito'); $condition->setOperator(App_ListFilter_Rule_Condition_GroupBy::EQUAL); $condition->setInverted(false); $this->andCondition->addCondition($condition); $this->assertFalse($this->andCondition->apply($this->listfilter)); }