From: Christian Weiske Date: Thu, 14 Apr 2011 14:58:47 +0000 (+0200) Subject: test opensearch api content type X-Git-Tag: v0.98.0~81 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=8a87a245b8bba49abd6ad7f9f457c421b09d9e30;p=semanticscuttle.git test opensearch api content type --- diff --git a/tests/Api/OpenSearchTest.php b/tests/Api/OpenSearchTest.php index 72b4e4d..a242319 100644 --- a/tests/Api/OpenSearchTest.php +++ b/tests/Api/OpenSearchTest.php @@ -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') + ); + } + } ?> \ No newline at end of file