summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2011-04-14 16:58:47 +0200
committerChristian Weiske <cweiske@cweiske.de>2011-04-14 16:58:47 +0200
commit8a87a245b8bba49abd6ad7f9f457c421b09d9e30 (patch)
treea77160bb6f585fd8a00ed8b59864b09a735258b4 /tests
parentdbccc1781e374f36225a3bdbc37b6f43d698a0b5 (diff)
downloadsemanticscuttle-8a87a245b8bba49abd6ad7f9f457c421b09d9e30.tar.gz
semanticscuttle-8a87a245b8bba49abd6ad7f9f457c421b09d9e30.tar.bz2
test opensearch api content type
Diffstat (limited to 'tests')
-rw-r--r--tests/Api/OpenSearchTest.php10
1 files changed, 9 insertions, 1 deletions
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