Commit dc68af40 authored by Sean Chen's avatar Sean Chen

add the test case to test the content-type header for extract query.

parent 87966860
...@@ -131,4 +131,14 @@ class RequestBuilderTest extends \PHPUnit_Framework_TestCase ...@@ -131,4 +131,14 @@ class RequestBuilderTest extends \PHPUnit_Framework_TestCase
$this->setExpectedException('Solarium\Exception\RuntimeException'); $this->setExpectedException('Solarium\Exception\RuntimeException');
$this->builder->build($this->query); $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());
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment