diff options
author | Morris Jobke <hey@morrisjobke.de> | 2014-11-17 16:44:45 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2014-11-17 16:44:45 +0100 |
commit | 146cb920c9daba10da0bd93efab3e64df97224de (patch) | |
tree | d55b5e13f4b9903cc23b9946ce188e9ad8c62ad7 /tests/lib/security | |
parent | 36528c6ef622876f9d89d3b0fbfafc8e44f569fb (diff) | |
parent | 6625d5c88f74edade459ec7e2ee0bfb79f21fedd (diff) | |
download | nextcloud-server-146cb920c9daba10da0bd93efab3e64df97224de.tar.gz nextcloud-server-146cb920c9daba10da0bd93efab3e64df97224de.zip |
Merge pull request #12218 from owncloud/issue/10991-fixes
Issue/10991 Make unit tests pass on windows
Diffstat (limited to 'tests/lib/security')
-rw-r--r-- | tests/lib/security/certificatemanager.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/lib/security/certificatemanager.php b/tests/lib/security/certificatemanager.php index 5baf9e16e81..01b3afb03ee 100644 --- a/tests/lib/security/certificatemanager.php +++ b/tests/lib/security/certificatemanager.php @@ -8,7 +8,7 @@ use \OC\Security\CertificateManager; -class CertificateManagerTest extends \PHPUnit_Framework_TestCase { +class CertificateManagerTest extends \Test\TestCase { /** @var CertificateManager */ private $certificateManager; @@ -18,8 +18,8 @@ class CertificateManagerTest extends \PHPUnit_Framework_TestCase { private $user; function setUp() { - $this->username = OC_Util::generateRandomBytes(20); - OC_User::createUser($this->username, OC_Util::generateRandomBytes(20)); + $this->username = $this->getUniqueID('', 20); + OC_User::createUser($this->username, $this->getUniqueID('', 20)); \OC_Util::tearDownFS(); \OC_User::setUserId(''); |