diff options
author | Roeland Jago Douma <rullzer@owncloud.com> | 2016-05-04 08:34:39 +0200 |
---|---|---|
committer | Roeland Jago Douma <rullzer@owncloud.com> | 2016-05-10 19:53:36 +0200 |
commit | 9e1d9871a8f45faa1d7dbbb42046bd0919a88a5d (patch) | |
tree | a8c5792cd7a371dc3b79d81f550b37d6299b4fb8 /tests | |
parent | 9504500e5fe80094c6b98393c05b9360590e0b48 (diff) | |
download | nextcloud-server-9e1d9871a8f45faa1d7dbbb42046bd0919a88a5d.tar.gz nextcloud-server-9e1d9871a8f45faa1d7dbbb42046bd0919a88a5d.zip |
Move OC_User_Database to \OC\User\Database
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/user/database.php | 2 | ||||
-rw-r--r-- | tests/lib/user/user.php | 8 | ||||
-rw-r--r-- | tests/settings/controller/userscontrollertest.php | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/tests/lib/user/database.php b/tests/lib/user/database.php index ba44d333a8c..0dea037ad78 100644 --- a/tests/lib/user/database.php +++ b/tests/lib/user/database.php @@ -37,7 +37,7 @@ class Test_User_Database extends Test_User_Backend { protected function setUp() { parent::setUp(); - $this->backend=new OC_User_Database(); + $this->backend=new \OC\User\Database(); } protected function tearDown() { diff --git a/tests/lib/user/user.php b/tests/lib/user/user.php index a8d688d9c88..acb557ccd91 100644 --- a/tests/lib/user/user.php +++ b/tests/lib/user/user.php @@ -225,7 +225,7 @@ class User extends \Test\TestCase { public function testGetBackendClassName() { $user = new \OC\User\User('foo', new \Test\Util\User\Dummy()); $this->assertEquals('Dummy', $user->getBackendClassName()); - $user = new \OC\User\User('foo', new \OC_User_Database()); + $user = new \OC\User\User('foo', new \OC\User\Database()); $this->assertEquals('Database', $user->getBackendClassName()); } @@ -328,7 +328,7 @@ class User extends \Test\TestCase { /** * @var \OC_User_Backend | \PHPUnit_Framework_MockObject_MockObject $backend */ - $backend = $this->getMock('\OC_User_Database'); + $backend = $this->getMock('\OC\User\Database'); $backend->expects($this->any()) ->method('implementsActions') @@ -357,7 +357,7 @@ class User extends \Test\TestCase { /** * @var \OC_User_Backend | \PHPUnit_Framework_MockObject_MockObject $backend */ - $backend = $this->getMock('\OC_User_Database'); + $backend = $this->getMock('\OC\User\Database'); $backend->expects($this->any()) ->method('implementsActions') @@ -378,7 +378,7 @@ class User extends \Test\TestCase { /** * @var \OC_User_Backend | \PHPUnit_Framework_MockObject_MockObject $backend */ - $backend = $this->getMock('\OC_User_Database'); + $backend = $this->getMock('\OC\User\Database'); $backend->expects($this->any()) ->method('implementsActions') diff --git a/tests/settings/controller/userscontrollertest.php b/tests/settings/controller/userscontrollertest.php index 6f07f34ba8d..2a2b53d8ff8 100644 --- a/tests/settings/controller/userscontrollertest.php +++ b/tests/settings/controller/userscontrollertest.php @@ -668,7 +668,7 @@ class UsersControllerTest extends \Test\TestCase { $this->container['UserManager'] ->expects($this->once()) ->method('getBackends') - ->will($this->returnValue([new \Test\Util\User\Dummy(), new \OC_User_Database()])); + ->will($this->returnValue([new \Test\Util\User\Dummy(), new \OC\User\Database()])); $this->container['UserManager'] ->expects($this->once()) ->method('clearBackends'); @@ -716,7 +716,7 @@ class UsersControllerTest extends \Test\TestCase { $this->container['UserManager'] ->expects($this->once()) ->method('getBackends') - ->will($this->returnValue([new \Test\Util\User\Dummy(), new \OC_User_Database()])); + ->will($this->returnValue([new \Test\Util\User\Dummy(), new \OC\User\Database()])); $this->container['UserManager'] ->expects($this->once()) ->method('search') |