diff options
author | John Molakvoæ <skjnldsv@protonmail.com> | 2022-10-06 12:36:59 +0200 |
---|---|---|
committer | John Molakvoæ <skjnldsv@protonmail.com> | 2022-10-13 12:13:39 +0200 |
commit | 9a92fe9b29fb0db0486cebdc869627e0ac3bd4ea (patch) | |
tree | 6d9673909ddacdf3c2697dc14c8d7a725b605cbc /apps/theming/tests | |
parent | db831359d3ad10d35536bd5f0e72ba629b828471 (diff) | |
download | nextcloud-server-9a92fe9b29fb0db0486cebdc869627e0ac3bd4ea.tar.gz nextcloud-server-9a92fe9b29fb0db0486cebdc869627e0ac3bd4ea.zip |
Fix primary and debounce to avoid infinite loop
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/theming/tests')
-rw-r--r-- | apps/theming/tests/ThemingDefaultsTest.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/theming/tests/ThemingDefaultsTest.php b/apps/theming/tests/ThemingDefaultsTest.php index 6879999e341..5106b2551b8 100644 --- a/apps/theming/tests/ThemingDefaultsTest.php +++ b/apps/theming/tests/ThemingDefaultsTest.php @@ -468,7 +468,7 @@ class ThemingDefaultsTest extends TestCase { $this->config ->expects($this->once()) ->method('getUserValue') - ->with('user', 'theming', 'background', 'default') + ->with('user', 'theming', 'background', '') ->willReturn(array_keys(BackgroundService::SHIPPED_BACKGROUNDS)[$backgroundIndex]); $this->assertEquals($background['primary_color'], $this->template->getColorPrimary()); @@ -486,7 +486,7 @@ class ThemingDefaultsTest extends TestCase { $this->config ->expects($this->once()) ->method('getUserValue') - ->with('user', 'theming', 'background', 'default') + ->with('user', 'theming', 'background', '') ->willReturn('#fff'); $this->assertEquals('#fff', $this->template->getColorPrimary()); @@ -504,7 +504,7 @@ class ThemingDefaultsTest extends TestCase { $this->config ->expects($this->once()) ->method('getUserValue') - ->with('user', 'theming', 'background', 'default') + ->with('user', 'theming', 'background', '') ->willReturn('nextcloud'); $this->assertEquals($this->template->getDefaultColorPrimary(), $this->template->getColorPrimary()); |