test opensearch api content type

This commit is contained in:
Christian Weiske 2011-04-14 16:58:47 +02:00
parent dbccc1781e
commit 8a87a245b8

View file

@ -6,7 +6,6 @@ class Api_OpenSearchTest extends TestBaseApi
protected $urlPart = ''; protected $urlPart = '';
public function testOpenSearchAvailable() public function testOpenSearchAvailable()
{ {
$req = $this->getRequest(); $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')
);
}
} }
?> ?>