Skip to content

Commit

Permalink
add the test case to test the content-type header for extract query.
Browse files Browse the repository at this point in the history
  • Loading branch information
seanchen committed Dec 23, 2014
1 parent 8796686 commit dc68af4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/Solarium/Tests/QueryType/Extract/RequestBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}

0 comments on commit dc68af4

Please sign in to comment.