aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/appframework/http
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/appframework/http')
-rw-r--r--tests/lib/appframework/http/ContentSecurityPolicyTest.php2
-rw-r--r--tests/lib/appframework/http/DataResponseTest.php2
-rw-r--r--tests/lib/appframework/http/DispatcherTest.php4
-rw-r--r--tests/lib/appframework/http/DownloadResponseTest.php4
-rw-r--r--tests/lib/appframework/http/EmptyContentSecurityPolicyTest.php2
-rw-r--r--tests/lib/appframework/http/HttpTest.php2
-rw-r--r--tests/lib/appframework/http/JSONResponseTest.php2
-rw-r--r--tests/lib/appframework/http/OCSResponseTest.php2
-rw-r--r--tests/lib/appframework/http/RedirectResponseTest.php3
-rw-r--r--tests/lib/appframework/http/RequestTest.php3
-rw-r--r--tests/lib/appframework/http/ResponseTest.php2
-rw-r--r--tests/lib/appframework/http/StreamResponseTest.php3
-rw-r--r--tests/lib/appframework/http/TemplateResponseTest.php2
13 files changed, 20 insertions, 13 deletions
diff --git a/tests/lib/appframework/http/ContentSecurityPolicyTest.php b/tests/lib/appframework/http/ContentSecurityPolicyTest.php
index adf03185e9f..82f2b3873b7 100644
--- a/tests/lib/appframework/http/ContentSecurityPolicyTest.php
+++ b/tests/lib/appframework/http/ContentSecurityPolicyTest.php
@@ -7,7 +7,7 @@
*/
-namespace OC\AppFramework\Http;
+namespace Test\AppFramework\Http;
use OCP\AppFramework\Http;
use OCP\AppFramework\Http\ContentSecurityPolicy;
diff --git a/tests/lib/appframework/http/DataResponseTest.php b/tests/lib/appframework/http/DataResponseTest.php
index e3d5689d54c..cde553cdf5f 100644
--- a/tests/lib/appframework/http/DataResponseTest.php
+++ b/tests/lib/appframework/http/DataResponseTest.php
@@ -22,7 +22,7 @@
*/
-namespace OC\AppFramework\Http;
+namespace Test\AppFramework\Http;
use OCP\AppFramework\Http\DataResponse;
diff --git a/tests/lib/appframework/http/DispatcherTest.php b/tests/lib/appframework/http/DispatcherTest.php
index 02c86df8e72..6df6f7fa7fe 100644
--- a/tests/lib/appframework/http/DispatcherTest.php
+++ b/tests/lib/appframework/http/DispatcherTest.php
@@ -22,8 +22,10 @@
*/
-namespace OC\AppFramework\Http;
+namespace Test\AppFramework\Http;
+use OC\AppFramework\Http\Dispatcher;
+use OC\AppFramework\Http\Request;
use OC\AppFramework\Utility\ControllerMethodReflector;
use OCP\AppFramework\Http;
use OCP\AppFramework\Http\JSONResponse;
diff --git a/tests/lib/appframework/http/DownloadResponseTest.php b/tests/lib/appframework/http/DownloadResponseTest.php
index 5e5db2c55ec..07c932b2725 100644
--- a/tests/lib/appframework/http/DownloadResponseTest.php
+++ b/tests/lib/appframework/http/DownloadResponseTest.php
@@ -22,9 +22,11 @@
*/
-namespace OCP\AppFramework\Http;
+namespace Test\AppFramework\Http;
+use OCP\AppFramework\Http\DownloadResponse;
+
class ChildDownloadResponse extends DownloadResponse {
};
diff --git a/tests/lib/appframework/http/EmptyContentSecurityPolicyTest.php b/tests/lib/appframework/http/EmptyContentSecurityPolicyTest.php
index 0d0f92de819..248c3d808d2 100644
--- a/tests/lib/appframework/http/EmptyContentSecurityPolicyTest.php
+++ b/tests/lib/appframework/http/EmptyContentSecurityPolicyTest.php
@@ -7,7 +7,7 @@
*/
-namespace OC\AppFramework\Http;
+namespace Test\AppFramework\Http;
use OCP\AppFramework\Http;
use OCP\AppFramework\Http\EmptyContentSecurityPolicy;
diff --git a/tests/lib/appframework/http/HttpTest.php b/tests/lib/appframework/http/HttpTest.php
index 4bcc8305db4..66256d1a86f 100644
--- a/tests/lib/appframework/http/HttpTest.php
+++ b/tests/lib/appframework/http/HttpTest.php
@@ -22,7 +22,7 @@
*/
-namespace OC\AppFramework\Http;
+namespace Test\AppFramework\Http;
use OC\AppFramework\Http;
diff --git a/tests/lib/appframework/http/JSONResponseTest.php b/tests/lib/appframework/http/JSONResponseTest.php
index a98f5fc894a..23a55e7eee8 100644
--- a/tests/lib/appframework/http/JSONResponseTest.php
+++ b/tests/lib/appframework/http/JSONResponseTest.php
@@ -24,7 +24,7 @@
*/
-namespace OC\AppFramework\Http;
+namespace Test\AppFramework\Http;
use OCP\AppFramework\Http\JSONResponse;
diff --git a/tests/lib/appframework/http/OCSResponseTest.php b/tests/lib/appframework/http/OCSResponseTest.php
index 1ca3e330bad..adac66a231c 100644
--- a/tests/lib/appframework/http/OCSResponseTest.php
+++ b/tests/lib/appframework/http/OCSResponseTest.php
@@ -22,7 +22,7 @@
*/
-namespace OC\AppFramework\Http;
+namespace Test\AppFramework\Http;
use OCP\AppFramework\Http\OCSResponse;
diff --git a/tests/lib/appframework/http/RedirectResponseTest.php b/tests/lib/appframework/http/RedirectResponseTest.php
index 723f6600c55..5ef82a1221d 100644
--- a/tests/lib/appframework/http/RedirectResponseTest.php
+++ b/tests/lib/appframework/http/RedirectResponseTest.php
@@ -22,9 +22,10 @@
*/
-namespace OCP\AppFramework\Http;
+namespace Test\AppFramework\Http;
use OCP\AppFramework\Http;
+use OCP\AppFramework\Http\RedirectResponse;
class RedirectResponseTest extends \Test\TestCase {
diff --git a/tests/lib/appframework/http/RequestTest.php b/tests/lib/appframework/http/RequestTest.php
index 3f1d09c2a93..5b960908991 100644
--- a/tests/lib/appframework/http/RequestTest.php
+++ b/tests/lib/appframework/http/RequestTest.php
@@ -8,8 +8,9 @@
* See the COPYING-README file.
*/
-namespace OC\AppFramework\Http;
+namespace Test\AppFramework\Http;
+use OC\AppFramework\Http\Request;
use OC\Security\CSRF\CsrfToken;
use OC\Security\CSRF\CsrfTokenManager;
use OCP\Security\ISecureRandom;
diff --git a/tests/lib/appframework/http/ResponseTest.php b/tests/lib/appframework/http/ResponseTest.php
index f845f02d984..0c582f8f6ea 100644
--- a/tests/lib/appframework/http/ResponseTest.php
+++ b/tests/lib/appframework/http/ResponseTest.php
@@ -22,7 +22,7 @@
*/
-namespace OC\AppFramework\Http;
+namespace Test\AppFramework\Http;
use OCP\AppFramework\Http\Response;
diff --git a/tests/lib/appframework/http/StreamResponseTest.php b/tests/lib/appframework/http/StreamResponseTest.php
index 4c47ecfbd6c..1f761d6b89c 100644
--- a/tests/lib/appframework/http/StreamResponseTest.php
+++ b/tests/lib/appframework/http/StreamResponseTest.php
@@ -22,10 +22,11 @@
*/
-namespace OC\AppFramework\Http;
+namespace Test\AppFramework\Http;
use OCP\AppFramework\Http\StreamResponse;
+use OCP\AppFramework\Http\IOutput;
use OCP\AppFramework\Http;
diff --git a/tests/lib/appframework/http/TemplateResponseTest.php b/tests/lib/appframework/http/TemplateResponseTest.php
index 2ec57f8979a..87fb6864f78 100644
--- a/tests/lib/appframework/http/TemplateResponseTest.php
+++ b/tests/lib/appframework/http/TemplateResponseTest.php
@@ -22,7 +22,7 @@
*/
-namespace OC\AppFramework\Http;
+namespace Test\AppFramework\Http;
use OCP\AppFramework\Http\TemplateResponse;
use OCP\AppFramework\Http;