summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2016-05-19 09:17:54 +0200
committerJoas Schilling <nickvergessen@owncloud.com>2016-05-19 09:19:03 +0200
commit7f3f16d1554bd2adbe3287fbf09a1124664f54af (patch)
tree0b41c5cba78f55c0792eb66e02319a358d46964d
parenta107e7de7b59f197367a44bdadddb9b46c590697 (diff)
downloadnextcloud-server-7f3f16d1554bd2adbe3287fbf09a1124664f54af.tar.gz
nextcloud-server-7f3f16d1554bd2adbe3287fbf09a1124664f54af.zip
Fix namespace in user/
-rw-r--r--tests/lib/updater/VersionCheckTest.php (renamed from tests/lib/updater/versioncheck.php)2
-rw-r--r--tests/lib/user/avataruserdummy.php6
-rw-r--r--tests/lib/user/backend.php4
-rw-r--r--tests/lib/user/database.php4
-rw-r--r--tests/lib/user/dummy.php4
5 files changed, 14 insertions, 6 deletions
diff --git a/tests/lib/updater/versioncheck.php b/tests/lib/updater/VersionCheckTest.php
index 2122ca28800..13851338eef 100644
--- a/tests/lib/updater/versioncheck.php
+++ b/tests/lib/updater/VersionCheckTest.php
@@ -20,7 +20,7 @@
*
*/
-namespace OC;
+namespace Test\Update;
use OC\Updater\VersionCheck;
use OCP\IConfig;
diff --git a/tests/lib/user/avataruserdummy.php b/tests/lib/user/avataruserdummy.php
index 086adb6043f..123825de50f 100644
--- a/tests/lib/user/avataruserdummy.php
+++ b/tests/lib/user/avataruserdummy.php
@@ -20,8 +20,10 @@
*
*/
-class Avatar_User_Dummy extends \Test\Util\User\Dummy {
+namespace Test\User;
+
+class AvatarUserDummy extends \Test\Util\User\Dummy {
public function canChangeAvatar($uid) {
return true;
}
-} \ No newline at end of file
+}
diff --git a/tests/lib/user/backend.php b/tests/lib/user/backend.php
index d5bbbe9f406..85ccbac913c 100644
--- a/tests/lib/user/backend.php
+++ b/tests/lib/user/backend.php
@@ -20,6 +20,8 @@
*
*/
+namespace Test\User;
+
/**
* Abstract class to provide the basis of backend-specific unit test classes.
*
@@ -30,7 +32,7 @@
* For an example see /tests/lib/user/dummy.php
*/
-abstract class Test_User_Backend extends \Test\TestCase {
+abstract class Backend extends \Test\TestCase {
/**
* @var \OC\User\Backend $backend
*/
diff --git a/tests/lib/user/database.php b/tests/lib/user/database.php
index 0dea037ad78..76d6226a7fd 100644
--- a/tests/lib/user/database.php
+++ b/tests/lib/user/database.php
@@ -20,12 +20,14 @@
*
*/
+namespace Test\User;
+
/**
* Class Test_User_Database
*
* @group DB
*/
-class Test_User_Database extends Test_User_Backend {
+class Database extends Backend {
/** @var array */
private $users;
diff --git a/tests/lib/user/dummy.php b/tests/lib/user/dummy.php
index c6c79d7a860..50382aa8fe6 100644
--- a/tests/lib/user/dummy.php
+++ b/tests/lib/user/dummy.php
@@ -20,7 +20,9 @@
*
*/
-class Test_User_Dummy extends Test_User_Backend {
+namespace Test\User;
+
+class Dummy extends Backend {
protected function setUp() {
parent::setUp();
$this->backend=new \Test\Util\User\Dummy();