diff options
author | Christian Weiske <cweiske@cweiske.de> | 2011-04-14 16:58:47 +0200 |
---|---|---|
committer | Christian Weiske <cweiske@cweiske.de> | 2011-04-14 16:58:47 +0200 |
commit | 8a87a245b8bba49abd6ad7f9f457c421b09d9e30 (patch) | |
tree | a77160bb6f585fd8a00ed8b59864b09a735258b4 | |
parent | dbccc1781e374f36225a3bdbc37b6f43d698a0b5 (diff) | |
download | semanticscuttle-8a87a245b8bba49abd6ad7f9f457c421b09d9e30.tar.gz semanticscuttle-8a87a245b8bba49abd6ad7f9f457c421b09d9e30.tar.bz2 |
test opensearch api content type
-rw-r--r-- | tests/Api/OpenSearchTest.php | 10 |
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 |