Fix namespace in user/

This commit is contained in:
Joas Schilling 2016-05-19 09:17:54 +02:00
parent a107e7de7b
commit 7f3f16d155
No known key found for this signature in database
GPG Key ID: 70A0B324C41C0946
5 changed files with 14 additions and 6 deletions

View File

@ -20,7 +20,7 @@
*
*/
namespace OC;
namespace Test\Update;
use OC\Updater\VersionCheck;
use OCP\IConfig;

View File

@ -20,7 +20,9 @@
*
*/
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;
}

View File

@ -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
*/

View File

@ -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;

View File

@ -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();