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/files_versions/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/files_versions/tests')
-rw-r--r-- | apps/files_versions/tests/versions.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/files_versions/tests/versions.php b/apps/files_versions/tests/versions.php index ffc98c2e98c..ee4978ff784 100644 --- a/apps/files_versions/tests/versions.php +++ b/apps/files_versions/tests/versions.php @@ -61,8 +61,10 @@ class Test_Files_Versioning extends \Test\TestCase { public static function tearDownAfterClass() { // cleanup test user - \OC_User::deleteUser(self::TEST_VERSIONS_USER); - \OC_User::deleteUser(self::TEST_VERSIONS_USER2); + $user = \OC::$server->getUserManager()->get(self::TEST_VERSIONS_USER); + if ($user !== null) { $user->delete(); } + $user = \OC::$server->getUserManager()->get(self::TEST_VERSIONS_USER2); + if ($user !== null) { $user->delete(); } parent::tearDownAfterClass(); } |