From dc68af403e1b29dd2891fd2b2427ab1e872ed51b Mon Sep 17 00:00:00 2001 From: Sean Chen Date: Tue, 23 Dec 2014 08:55:36 -0500 Subject: [PATCH] add the test case to test the content-type header for extract query. --- .../Tests/QueryType/Extract/RequestBuilderTest.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/Solarium/Tests/QueryType/Extract/RequestBuilderTest.php b/tests/Solarium/Tests/QueryType/Extract/RequestBuilderTest.php index 0c7433085..5f52cb06f 100644 --- a/tests/Solarium/Tests/QueryType/Extract/RequestBuilderTest.php +++ b/tests/Solarium/Tests/QueryType/Extract/RequestBuilderTest.php @@ -131,4 +131,14 @@ public function testDocumentWithBoostThrowsException() $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()); + } }