]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
test opensearch api content type
authorChristian Weiske <cweiske@cweiske.de>
Thu, 14 Apr 2011 14:58:47 +0000 (16:58 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Thu, 14 Apr 2011 14:58:47 +0000 (16:58 +0200)
tests/Api/OpenSearchTest.php

index 72b4e4d70bb22be8ba2b3845a0ebc130635aaf2c..a2423191cb56a48fd7e6fb125387be557133c260 100644 (file)
@@ -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