private function assertExpectedQuery($expectedQuery)
 {
     $query = $this->queryBuilder->getQuery();
     $this->assertEquals($expectedQuery, $query);
     $this->queryBuilder->reset();
 }
Ejemplo n.º 2
0
 private function assertExpectedDsl($expectedDsl)
 {
     $dsl = $this->queryBuilder->getQuery();
     $this->assertEquals($expectedDsl, $dsl);
 }
 /**
  * @param Query $query
  *
  * @return $this
  */
 public function setPostQuery(Query $query)
 {
     $this->postQuery = $query->getQuery();
     return $this;
 }