diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2016-05-19 09:02:58 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2016-05-19 09:02:58 +0200 |
commit | 68481c10e61b9db04f6a3627d270aff7e712bd25 (patch) | |
tree | 23db18e3ac4f84f58429429a596eca3b73980a7b /tests/lib | |
parent | a9f24a74a238536c787047b3f2950510738902da (diff) | |
download | nextcloud-server-68481c10e61b9db04f6a3627d270aff7e712bd25.tar.gz nextcloud-server-68481c10e61b9db04f6a3627d270aff7e712bd25.zip |
Fix namespaces in security/
Diffstat (limited to 'tests/lib')
12 files changed, 25 insertions, 0 deletions
diff --git a/tests/lib/security/certificatemanager.php b/tests/lib/security/CertificateManagerTest.php index e9ccea39efe..43206569cf4 100644 --- a/tests/lib/security/certificatemanager.php +++ b/tests/lib/security/CertificateManagerTest.php @@ -6,6 +6,8 @@ * See the COPYING-README file. */ +namespace Test\Security; + use \OC\Security\CertificateManager; /** diff --git a/tests/lib/security/certificate.php b/tests/lib/security/CertificateTest.php index 82e91c71733..888a4ba1f13 100644 --- a/tests/lib/security/certificate.php +++ b/tests/lib/security/CertificateTest.php @@ -19,6 +19,8 @@ * */ +namespace Test\Security; + use \OC\Security\Certificate; class CertificateTest extends \Test\TestCase { diff --git a/tests/lib/security/credentialsmanager.php b/tests/lib/security/CredentialsManagerTest.php index 72f061e05bb..7eb4e4d7b1a 100644 --- a/tests/lib/security/credentialsmanager.php +++ b/tests/lib/security/CredentialsManagerTest.php @@ -19,6 +19,8 @@ * */ +namespace Test\Security; + use \OCP\Security\ICrypto; use \OCP\IDBConnection; use \OC\Security\CredentialsManager; diff --git a/tests/lib/security/crypto.php b/tests/lib/security/CryptoTest.php index 1571cf89248..356d504f4b3 100644 --- a/tests/lib/security/crypto.php +++ b/tests/lib/security/CryptoTest.php @@ -6,6 +6,8 @@ * See the COPYING-README file. */ +namespace Test\Security; + use \OC\Security\Crypto; class CryptoTest extends \Test\TestCase { diff --git a/tests/lib/security/hasher.php b/tests/lib/security/HasherTest.php index a6f7df5b79f..913f4d703e8 100644 --- a/tests/lib/security/hasher.php +++ b/tests/lib/security/HasherTest.php @@ -6,6 +6,8 @@ * See the COPYING-README file. */ +namespace Test\Security; + use OC\Security\Hasher; /** diff --git a/tests/lib/security/securerandom.php b/tests/lib/security/SecureRandomTest.php index 526066d92ee..40431c89795 100644 --- a/tests/lib/security/securerandom.php +++ b/tests/lib/security/SecureRandomTest.php @@ -6,6 +6,8 @@ * See the COPYING-README file. */ +namespace Test\Security; + use \OC\Security\SecureRandom; class SecureRandomTest extends \Test\TestCase { diff --git a/tests/lib/security/trusteddomainhelper.php b/tests/lib/security/TrustedDomainHelperTest.php index 3581211ce61..dfd51167cca 100644 --- a/tests/lib/security/trusteddomainhelper.php +++ b/tests/lib/security/TrustedDomainHelperTest.php @@ -6,6 +6,8 @@ * See the COPYING-README file. */ +namespace Test\Security; + use \OC\Security\TrustedDomainHelper; use OCP\IConfig; diff --git a/tests/lib/security/csp/ContentSecurityPolicyManagerTest.php b/tests/lib/security/csp/ContentSecurityPolicyManagerTest.php index 975c35d3780..d463e7c648c 100644 --- a/tests/lib/security/csp/ContentSecurityPolicyManagerTest.php +++ b/tests/lib/security/csp/ContentSecurityPolicyManagerTest.php @@ -19,6 +19,9 @@ * */ +namespace Test\Security\CSP; + + use OC\Security\CSP\ContentSecurityPolicyManager; class ContentSecurityPolicyManagerTest extends \Test\TestCase { diff --git a/tests/lib/security/csrf/CsrfTokenGeneratorTest.php b/tests/lib/security/csrf/CsrfTokenGeneratorTest.php index be7434f514f..28b85c3951f 100644 --- a/tests/lib/security/csrf/CsrfTokenGeneratorTest.php +++ b/tests/lib/security/csrf/CsrfTokenGeneratorTest.php @@ -19,6 +19,8 @@ * */ +namespace Test\Security\CSRF; + class CsrfTokenGeneratorTest extends \Test\TestCase { /** @var \OCP\Security\ISecureRandom */ private $random; diff --git a/tests/lib/security/csrf/CsrfTokenManagerTest.php b/tests/lib/security/csrf/CsrfTokenManagerTest.php index 145fc03c51e..ab19a43e91e 100644 --- a/tests/lib/security/csrf/CsrfTokenManagerTest.php +++ b/tests/lib/security/csrf/CsrfTokenManagerTest.php @@ -19,6 +19,8 @@ * */ +namespace Test\Security\CSRF; + class CsrfTokenManagerTest extends \Test\TestCase { /** @var \OC\Security\CSRF\CsrfTokenManager */ private $csrfTokenManager; diff --git a/tests/lib/security/csrf/CsrfTokenTest.php b/tests/lib/security/csrf/CsrfTokenTest.php index 62e6ad112e7..da640ce5052 100644 --- a/tests/lib/security/csrf/CsrfTokenTest.php +++ b/tests/lib/security/csrf/CsrfTokenTest.php @@ -19,6 +19,8 @@ * */ +namespace Test\Security\CSRF; + class CsrfTokenTest extends \Test\TestCase { public function testGetEncryptedValue() { $csrfToken = new \OC\Security\CSRF\CsrfToken('MyCsrfToken'); diff --git a/tests/lib/security/csrf/tokenstorage/SessionStorageTest.php b/tests/lib/security/csrf/tokenstorage/SessionStorageTest.php index 3a83f6a8c00..550fa49e1b2 100644 --- a/tests/lib/security/csrf/tokenstorage/SessionStorageTest.php +++ b/tests/lib/security/csrf/tokenstorage/SessionStorageTest.php @@ -19,6 +19,8 @@ * */ +namespace Test\Security\CSRF\TokenStorage; + class SessionStorageTest extends \Test\TestCase { /** @var \OCP\ISession */ private $session; |