Fix namespace in user/
This commit is contained in:
parent
a107e7de7b
commit
7f3f16d155
|
@ -20,7 +20,7 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace OC;
|
namespace Test\Update;
|
||||||
|
|
||||||
use OC\Updater\VersionCheck;
|
use OC\Updater\VersionCheck;
|
||||||
use OCP\IConfig;
|
use OCP\IConfig;
|
|
@ -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) {
|
public function canChangeAvatar($uid) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,6 +20,8 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
namespace Test\User;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Abstract class to provide the basis of backend-specific unit test classes.
|
* 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
|
* 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
|
* @var \OC\User\Backend $backend
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -20,12 +20,14 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
namespace Test\User;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class Test_User_Database
|
* Class Test_User_Database
|
||||||
*
|
*
|
||||||
* @group DB
|
* @group DB
|
||||||
*/
|
*/
|
||||||
class Test_User_Database extends Test_User_Backend {
|
class Database extends Backend {
|
||||||
/** @var array */
|
/** @var array */
|
||||||
private $users;
|
private $users;
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,9 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class Test_User_Dummy extends Test_User_Backend {
|
namespace Test\User;
|
||||||
|
|
||||||
|
class Dummy extends Backend {
|
||||||
protected function setUp() {
|
protected function setUp() {
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
$this->backend=new \Test\Util\User\Dummy();
|
$this->backend=new \Test\Util\User\Dummy();
|
||||||
|
|
Loading…
Reference in New Issue