Пример #1
0
 public function testFull()
 {
     $this->query->clear();
     $this->query->set('culture', 'de')->orderBy('Price')->setLimit(10)->setOffset(5)->filterByFederalStateId(5)->filterByPrice(array('min' => 455, 'max' => 800))->filterByZipCode(array('1020', '1030'));
     $this->assertEquals(array('limit' => 10, 'offset' => 5, 'culture' => 'de', 'orderby' => 'preis', 'ordertype' => 'asc', 'filter' => array('preis_von' => 455, 'preis_bis' => 800, 'bundesland_id' => 5, 'plz' => array('1020', '1030'))), $this->query->getParams());
 }
Пример #2
0
 public function testMagicMethodMapping()
 {
     $this->query->clear();
     $this->query->filterByParentId(12345)->filterByRealtySystemType('area');
     $this->assertEquals(array('filter' => array('parent_id' => 12345, 'realty_type' => 'area')), $this->query->getParams());
 }