Exemple #1
0
 public function testRemovingNotDefinedConditionThrowsAnException()
 {
     $this->setExpectedException(\InvalidArgumentException::class, 'Condition "' . self::CONDITION_NAME . '" does not exist');
     $this->object->removeConditionByName(self::CONDITION_NAME);
 }
 public function testGetting()
 {
     $this->object->offset(100);
     $this->assertSame(100, $this->object->getOffset());
 }
 public function testGetting()
 {
     $this->object->sortBy(self::FIELD, 'asc');
     $this->assertEquals([new SortingDefinition(self::FIELD, 'asc')], $this->object->getSorting());
 }
 public function testGetting()
 {
     $this->object->limit(100);
     $this->assertSame(100, $this->object->getLimit());
 }