summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLouis Chemineau <louis@chmn.me>2022-01-10 17:34:48 +0100
committerLouis Chemineau <louis@chmn.me>2022-01-10 17:34:48 +0100
commite50121d4c05afb8eca22bc105b160283ff4181c0 (patch)
tree508680e5db2f4dcd1f4aad4a3188ceda214aa485 /tests
parentdb0414ad4cf3b7aeccc83a69c079bb6951ab3b83 (diff)
downloadnextcloud-server-e50121d4c05afb8eca22bc105b160283ff4181c0.tar.gz
nextcloud-server-e50121d4c05afb8eca22bc105b160283ff4181c0.zip
Streamline reseting of private static properties
Signed-off-by: Louis Chemineau <louis@chmn.me>
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 4734898a787..90bdb5708df 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() {