public function testSetting()
 {
     $result = $this->object->sortBy(self::FIELD, 'asc');
     $this->assertSame($this->object, $result);
     $this->assertContains(new SortingCondition([new SortingDefinition(self::FIELD, 'asc')]), $this->object->getConditions(), '', false, false);
 }
Exemple #2
0
 public function testRemovingCondition()
 {
     $this->object->addCondition($this->condition, self::CONDITION_NAME);
     $this->object->removeConditionByName(self::CONDITION_NAME);
     $this->assertSame([], $this->object->getConditions());
 }
 public function testSetting()
 {
     $result = $this->object->offset(100);
     $this->assertSame($this->object, $result);
     $this->assertContains(new OffsetCondition(100), $this->object->getConditions(), '', false, false);
 }