From 8a87a245b8bba49abd6ad7f9f457c421b09d9e30 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Thu, 14 Apr 2011 16:58:47 +0200 Subject: [PATCH] test opensearch api content type --- tests/Api/OpenSearchTest.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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