public function testDocumentWithBoostThrowsException() { $document = $this->query->createDocument(); $document->setBoost(4); $this->query->setDocument($document); $this->setExpectedException('Solarium\\Exception\\RuntimeException'); $this->builder->build($this->query); }
public function testSetAndGetStart() { $doc = new Document(array('field1', 'value1')); $this->query->setDocument($doc); $this->assertEquals($doc, $this->query->getDocument()); }