summaryrefslogtreecommitdiffstats
path: root/tests/lib/migrate.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/migrate.php')
-rw-r--r--tests/lib/migrate.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/migrate.php b/tests/lib/migrate.php
index 3f87bbc1ac8..9c1e980c445 100644
--- a/tests/lib/migrate.php
+++ b/tests/lib/migrate.php
@@ -6,7 +6,7 @@
* See the COPYING-README file.
*/
-class Test_Migrate extends PHPUnit_Framework_TestCase {
+class Test_Migrate extends \Test\TestCase {
public $users;
public $tmpfiles = array();
@@ -38,7 +38,7 @@ class Test_Migrate extends PHPUnit_Framework_TestCase {
* @return string the test users id
*/
public function generateUser() {
- $username = uniqid();
+ $username = $this->getUniqueID();
\OC_User::createUser($username, 'password');
\OC_Util::tearDownFS();
\OC_User::setUserId('');