summaryrefslogtreecommitdiffstats
path: root/apps/theming/tests
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2022-11-24 12:20:27 +0100
committerCôme Chilliet <come.chilliet@nextcloud.com>2022-11-24 12:20:27 +0100
commitf171de52b385dd4c04884a4c039672babc28034e (patch)
treedcbaccacc8df0b2bb0cfbbacd049175254ff2aea /apps/theming/tests
parent5f3585d8175bab56899883457313fafa442fc9dc (diff)
downloadnextcloud-server-f171de52b385dd4c04884a4c039672babc28034e.tar.gz
nextcloud-server-f171de52b385dd4c04884a4c039672babc28034e.zip
Fix theming tests for PHP 8.2
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/theming/tests')
-rw-r--r--apps/theming/tests/ThemingDefaultsTest.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/theming/tests/ThemingDefaultsTest.php b/apps/theming/tests/ThemingDefaultsTest.php
index 445ffd2b0a7..fafa1fd450c 100644
--- a/apps/theming/tests/ThemingDefaultsTest.php
+++ b/apps/theming/tests/ThemingDefaultsTest.php
@@ -461,6 +461,11 @@ class ThemingDefaultsTest extends TestCase {
['theming', 'disable-user-theming', 'no', 'no'],
['theming', 'color', '', ''],
]);
+ $this->config
+ ->expects($this->once())
+ ->method('getUserValue')
+ ->with('user', 'theming', 'background')
+ ->willReturn('');
$this->assertEquals(BackgroundService::DEFAULT_COLOR, $this->template->getColorPrimary());
}