public function testQueryInFields() { $this->object->setIndex(new TestIndex()); $this->object->queryInFields('name', 'bob smith'); $this->assertEquals('@name bob smith', $this->object->getQuery()); $this->object->queryInFields('name,address,gender', 'bob smith'); $this->assertEquals('@(name,address,gender) bob smith', $this->object->getQuery()); }