summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLouis Chemineau <louis@chmn.me>2022-01-10 18:42:07 +0100
committerLouis Chemineau <louis@chmn.me>2022-01-10 18:42:07 +0100
commit92e60caa866718aaff8516b0fd3dc490c83499d1 (patch)
tree53275e73c228e9d5873d306644a98de6ce1edf2c /tests
parente50121d4c05afb8eca22bc105b160283ff4181c0 (diff)
downloadnextcloud-server-92e60caa866718aaff8516b0fd3dc490c83499d1.tar.gz
nextcloud-server-92e60caa866718aaff8516b0fd3dc490c83499d1.zip
Revert "Streamline reseting of private static properties"
This reverts commit e50121d4c05afb8eca22bc105b160283ff4181c0.
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/UtilTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/UtilTest.php b/tests/lib/UtilTest.php
index 90bdb5708df..4734898a787 100644
--- a/tests/lib/UtilTest.php
+++ b/tests/lib/UtilTest.php
@@ -224,17 +224,17 @@ class UtilTest extends \Test\TestCase {
parent::setUp();
\OC_Util::$scripts = [];
+ \OCP\Util::clearScriptsState();
\OC_Util::$styles = [];
self::invokePrivate(\OCP\Util::class, 'scripts', [[]]);
- self::invokePrivate(\OCP\Util::class, 'scriptsDeps', [[]]);
}
protected function tearDown(): void {
parent::tearDown();
\OC_Util::$scripts = [];
+ \OCP\Util::clearScriptsState();
\OC_Util::$styles = [];
self::invokePrivate(\OCP\Util::class, 'scripts', [[]]);
- self::invokePrivate(\OCP\Util::class, 'scriptsDeps', [[]]);
}
public function testAddScript() {