diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2014-11-05 12:21:02 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2014-11-06 17:36:35 +0100 |
commit | 216ef617db7b0ed6e717fe92867aa11245a4cece (patch) | |
tree | fb0fe7caa652bbcc4c3a5f83f071be643c00af9b /tests/lib/group/backend.php | |
parent | 62047f86f5828a5743a476177318bc00ca8e453f (diff) | |
download | nextcloud-server-216ef617db7b0ed6e717fe92867aa11245a4cece.tar.gz nextcloud-server-216ef617db7b0ed6e717fe92867aa11245a4cece.zip |
Do not use uniqid in Group and User tests as it is not unique on windows
Diffstat (limited to 'tests/lib/group/backend.php')
-rw-r--r-- | tests/lib/group/backend.php | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/lib/group/backend.php b/tests/lib/group/backend.php index 95a5cf5f49c..62c189489d7 100644 --- a/tests/lib/group/backend.php +++ b/tests/lib/group/backend.php @@ -20,7 +20,7 @@ * */ -abstract class Test_Group_Backend extends PHPUnit_Framework_TestCase { +abstract class Test_Group_Backend extends \Test\TestCase { /** * @var OC_Group_Backend $backend */ @@ -33,7 +33,7 @@ abstract class Test_Group_Backend extends PHPUnit_Framework_TestCase { */ public function getGroupName($name = null) { if(is_null($name)) { - return uniqid('test_'); + return $this->getUniqueID('test_'); } else { return $name; } @@ -45,7 +45,7 @@ abstract class Test_Group_Backend extends PHPUnit_Framework_TestCase { * @return string */ public function getUserName() { - return uniqid('test_'); + return $this->getUniqueID('test_'); } public function testAddRemove() { @@ -138,6 +138,4 @@ abstract class Test_Group_Backend extends PHPUnit_Framework_TestCase { $result = $this->backend->countUsersInGroup($group, 'bar'); $this->assertSame(2, $result); } - - } |