diff options
author | Roeland Jago Douma <rullzer@owncloud.com> | 2015-12-17 15:59:23 +0100 |
---|---|---|
committer | Roeland Jago Douma <rullzer@owncloud.com> | 2015-12-17 16:18:40 +0100 |
commit | 1f715289bf1cafb7e51dce7a4ab478dd3db5088e (patch) | |
tree | 81d3623bff851e08b205cfc3bbefc5c886ef530e /apps/encryption/tests | |
parent | 9201b9713ed21566f90628d41c49056ca5314096 (diff) | |
download | nextcloud-server-1f715289bf1cafb7e51dce7a4ab478dd3db5088e.tar.gz nextcloud-server-1f715289bf1cafb7e51dce7a4ab478dd3db5088e.zip |
Removed deprecated function OC_User::deleteUser
Replaced with proper OCP calls
Diffstat (limited to 'apps/encryption/tests')
-rw-r--r-- | apps/encryption/tests/lib/MigrationTest.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/apps/encryption/tests/lib/MigrationTest.php b/apps/encryption/tests/lib/MigrationTest.php index ec1dccb87b8..6df72ac1bf6 100644 --- a/apps/encryption/tests/lib/MigrationTest.php +++ b/apps/encryption/tests/lib/MigrationTest.php @@ -49,9 +49,12 @@ class MigrationTest extends \Test\TestCase { } public static function tearDownAfterClass() { - \OC_User::deleteUser(self::TEST_ENCRYPTION_MIGRATION_USER1); - \OC_User::deleteUser(self::TEST_ENCRYPTION_MIGRATION_USER2); - \OC_User::deleteUser(self::TEST_ENCRYPTION_MIGRATION_USER3); + $user = \OC::$server->getUserManager()->get(self::TEST_ENCRYPTION_MIGRATION_USER1); + if ($user !== null) { $user->delete(); } + $user = \OC::$server->getUserManager()->get(self::TEST_ENCRYPTION_MIGRATION_USER2); + if ($user !== null) { $user->delete(); } + $user = \OC::$server->getUserManager()->get(self::TEST_ENCRYPTION_MIGRATION_USER3); + if ($user !== null) { $user->delete(); } parent::tearDownAfterClass(); } |