test opensearch api content type
This commit is contained in:
parent
dbccc1781e
commit
8a87a245b8
1 changed files with 9 additions and 1 deletions
|
@ -6,7 +6,6 @@ class Api_OpenSearchTest extends TestBaseApi
|
|||
protected $urlPart = '';
|
||||
|
||||
|
||||
|
||||
public function testOpenSearchAvailable()
|
||||
{
|
||||
$req = $this->getRequest();
|
||||
|
@ -46,6 +45,15 @@ class Api_OpenSearchTest extends TestBaseApi
|
|||
);
|
||||
}
|
||||
|
||||
public function testOpenSearchContentType()
|
||||
{
|
||||
$res = $this->getRequest('api/opensearch.php')->send();
|
||||
$this->assertEquals(
|
||||
'text/xml; charset=utf-8',
|
||||
$res->getHeader('content-type')
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
Loading…
Reference in a new issue