aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2024-09-23 18:12:17 +0200
committerCôme Chilliet <come.chilliet@nextcloud.com>2024-09-23 18:13:29 +0200
commitaf0b8fbd178bdbca159475a232a8b54ccb746df7 (patch)
treeb4781ab2a801ee8c212f93acb541da7ddddb4cc0 /tests
parentb80bc81579a09741f262b264d98196e92a262a1c (diff)
downloadnextcloud-server-af0b8fbd178bdbca159475a232a8b54ccb746df7.tar.gz
nextcloud-server-af0b8fbd178bdbca159475a232a8b54ccb746df7.zip
fix(tests): Fix tests now that trashbin listens to events properly
Hooks are cleared in test bootstrap so switching to events activates them in tests. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Security/CertificateManagerTest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/lib/Security/CertificateManagerTest.php b/tests/lib/Security/CertificateManagerTest.php
index 095512d0b4f..1c168228b6a 100644
--- a/tests/lib/Security/CertificateManagerTest.php
+++ b/tests/lib/Security/CertificateManagerTest.php
@@ -41,7 +41,7 @@ class CertificateManagerTest extends \Test\TestCase {
$this->registerMount($this->username, $storage, '/' . $this->username . '/');
\OC_Util::tearDownFS();
- \OC_User::setUserId('');
+ \OC_User::setUserId($this->username);
\OC\Files\Filesystem::tearDown();
\OC_Util::setupFS($this->username);