diff options
author | Louis Chemineau <louis@chmn.me> | 2022-01-10 17:34:48 +0100 |
---|---|---|
committer | Louis Chemineau <louis@chmn.me> | 2022-01-10 17:34:48 +0100 |
commit | e50121d4c05afb8eca22bc105b160283ff4181c0 (patch) | |
tree | 508680e5db2f4dcd1f4aad4a3188ceda214aa485 /tests/lib/UtilTest.php | |
parent | db0414ad4cf3b7aeccc83a69c079bb6951ab3b83 (diff) | |
download | nextcloud-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/lib/UtilTest.php')
-rw-r--r-- | tests/lib/UtilTest.php | 4 |
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() { |