summaryrefslogtreecommitdiffstats
path: root/tests/lib
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-04-22 12:25:49 +0200
committerRobin Appelman <icewind@owncloud.com>2014-04-22 12:25:49 +0200
commit3821a0968950c7320ed9bfa60a5c347060eaff0a (patch)
tree9b428cf0bb01e4c392d3ee7b194c6b81a459617d /tests/lib
parent295b75cca91273c7145379cc479fa84ac14c8dd1 (diff)
parentd56072cf2ed07069fe8060af47d8f752590d1f8a (diff)
downloadnextcloud-server-3821a0968950c7320ed9bfa60a5c347060eaff0a.tar.gz
nextcloud-server-3821a0968950c7320ed9bfa60a5c347060eaff0a.zip
merge master into webdav-injection
Diffstat (limited to 'tests/lib')
-rw-r--r--tests/lib/appframework/http/DownloadResponseTest.php2
-rw-r--r--tests/lib/appframework/http/JSONResponseTest.php7
-rw-r--r--tests/lib/appframework/http/RedirectResponseTest.php2
-rw-r--r--tests/lib/appframework/middleware/security/SecurityMiddlewareTest.php2
4 files changed, 3 insertions, 10 deletions
diff --git a/tests/lib/appframework/http/DownloadResponseTest.php b/tests/lib/appframework/http/DownloadResponseTest.php
index 64fe7992b6a..b305c63ad4d 100644
--- a/tests/lib/appframework/http/DownloadResponseTest.php
+++ b/tests/lib/appframework/http/DownloadResponseTest.php
@@ -22,7 +22,7 @@
*/
-namespace OC\AppFramework\Http;
+namespace OCP\AppFramework\Http;
//require_once(__DIR__ . "/../classloader.php");
diff --git a/tests/lib/appframework/http/JSONResponseTest.php b/tests/lib/appframework/http/JSONResponseTest.php
index b9b7c7d6382..fbaae1b9227 100644
--- a/tests/lib/appframework/http/JSONResponseTest.php
+++ b/tests/lib/appframework/http/JSONResponseTest.php
@@ -79,13 +79,6 @@ class JSONResponseTest extends \PHPUnit_Framework_TestCase {
$this->assertEquals($expected, $this->json->render());
}
-
- public function testShouldHaveXContentHeaderByDefault() {
- $headers = $this->json->getHeaders();
- $this->assertEquals('nosniff', $headers['X-Content-Type-Options']);
- }
-
-
public function testConstructorAllowsToSetData() {
$data = array('hi');
$code = 300;
diff --git a/tests/lib/appframework/http/RedirectResponseTest.php b/tests/lib/appframework/http/RedirectResponseTest.php
index f82d0c3a675..f62b420f4ee 100644
--- a/tests/lib/appframework/http/RedirectResponseTest.php
+++ b/tests/lib/appframework/http/RedirectResponseTest.php
@@ -22,7 +22,7 @@
*/
-namespace OC\AppFramework\Http;
+namespace OCP\AppFramework\Http;
use OCP\AppFramework\Http;
diff --git a/tests/lib/appframework/middleware/security/SecurityMiddlewareTest.php b/tests/lib/appframework/middleware/security/SecurityMiddlewareTest.php
index 63c48a62829..19e8a68c388 100644
--- a/tests/lib/appframework/middleware/security/SecurityMiddlewareTest.php
+++ b/tests/lib/appframework/middleware/security/SecurityMiddlewareTest.php
@@ -26,7 +26,7 @@ namespace OC\AppFramework\Middleware\Security;
use OC\AppFramework\Http;
use OC\AppFramework\Http\Request;
-use OC\AppFramework\Http\RedirectResponse;
+use OCP\AppFramework\Http\RedirectResponse;
use OCP\AppFramework\Http\JSONResponse;