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 testContentTypeHeader() { $headers = array('Content-Type: multipart/form-data'); $request = $this->builder->build($this->query); $this->assertEquals($headers, $request->getHeaders()); }