public function testOrWhere()
 {
     $this->query->where('my_field_de', 'foo', QueryInterface::WILDCARD_SURROUNDED)->orWhere('my_second_field', 'bar');
     $q = $this->query->getQueryString();
     $this->assertInternalType('string', $q);
     $this->assertNotEmpty($q);
     $this->assertEquals('my_field_de:"*foo*" OR my_second_field:"bar"', $q);
 }
 public function testLogicNesting()
 {
     $this->query->where('first_field', 'one')->andNest()->where('second_field', 'two', QueryInterface::WILDCARD_SURROUNDED)->andWhere('third_field', 'three')->endNest()->orNest()->where('fourth_field', 'four')->endNest();
     $q = $this->query->getQueryString();
     $this->assertInternalType('string', $q);
     $this->assertNotEmpty($q);
     $this->assertEquals('first_field:"one" AND ( second_field:"*two*" AND third_field:"three" ) OR ( fourth_field:"four" )', $q);
 }