aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/user.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/user.php')
-rw-r--r--tests/lib/user.php17
1 files changed, 1 insertions, 16 deletions
diff --git a/tests/lib/user.php b/tests/lib/user.php
index 5e9a38a43c0..26596e2fb54 100644
--- a/tests/lib/user.php
+++ b/tests/lib/user.php
@@ -56,25 +56,10 @@ class User extends TestCase {
$fail = \OC_User::deleteUser('victim');
$this->assertFalse($fail);
- $success = \OC_User::createUser('victim', 'password');
+ $success = \OC::$server->getUserManager()->createUser('victim', 'password');
$success = \OC_User::deleteUser('victim');
$this->assertTrue($success);
}
-
- public function testCreateUser(){
- $this->backend->expects($this->any())
- ->method('implementsActions')
- ->will($this->returnCallback(function ($actions) {
- if ($actions === \OC_USER_BACKEND_CREATE_USER) {
- return true;
- } else {
- return false;
- }
- }));
-
- $user = \OC_User::createUser('newuser', 'newpassword');
- $this->assertEquals('newuser', $user->getUid());
- }
}