diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2015-01-20 17:00:29 +0100 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2015-01-26 16:58:52 +0100 |
commit | 67da1f7e5ac9fc5472b6041dcfdc81a4b8428379 (patch) | |
tree | c59843c523ac38af745beadaa0baefec5815d3c0 /tests | |
parent | 66f0db30b2ba97cbe91031b42740dabddc659f0d (diff) | |
download | nextcloud-server-67da1f7e5ac9fc5472b6041dcfdc81a4b8428379.tar.gz nextcloud-server-67da1f7e5ac9fc5472b6041dcfdc81a4b8428379.zip |
certificate manager only needs the user-id, no need to pass on the complete user object
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/security/certificatemanager.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/lib/security/certificatemanager.php b/tests/lib/security/certificatemanager.php index cff6932b670..83980a6755c 100644 --- a/tests/lib/security/certificatemanager.php +++ b/tests/lib/security/certificatemanager.php @@ -28,9 +28,7 @@ class CertificateManagerTest extends \Test\TestCase { \OC\Files\Filesystem::tearDown(); \OC_Util::setupFS($this->username); - $this->user = \OC::$server->getUserManager()->get($this->username); - - $this->certificateManager = new CertificateManager($this->user); + $this->certificateManager = new CertificateManager($this->username); } protected function tearDown() { @@ -84,7 +82,7 @@ class CertificateManagerTest extends \Test\TestCase { } function testGetCertificateBundle() { - $this->assertSame($this->user->getHome().'/files_external/rootcerts.crt', $this->certificateManager->getCertificateBundle()); + $this->assertSame('/' . $this->username . '/files_external/rootcerts.crt', $this->certificateManager->getCertificateBundle()); } }
\ No newline at end of file |