diff options
Diffstat (limited to 'tests/lib/security/certificatemanager.php')
-rw-r--r-- | tests/lib/security/certificatemanager.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/lib/security/certificatemanager.php b/tests/lib/security/certificatemanager.php index 01b3afb03ee..cff6932b670 100644 --- a/tests/lib/security/certificatemanager.php +++ b/tests/lib/security/certificatemanager.php @@ -17,7 +17,9 @@ class CertificateManagerTest extends \Test\TestCase { /** @var \OC\User\User */ private $user; - function setUp() { + protected function setUp() { + parent::setUp(); + $this->username = $this->getUniqueID('', 20); OC_User::createUser($this->username, $this->getUniqueID('', 20)); @@ -31,8 +33,9 @@ class CertificateManagerTest extends \Test\TestCase { $this->certificateManager = new CertificateManager($this->user); } - function tearDown() { + protected function tearDown() { \OC_User::deleteUser($this->username); + parent::tearDown(); } protected function assertEqualsArrays($expected, $actual) { |