]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix theming tests for PHP 8.2 35403/head
authorCôme Chilliet <come.chilliet@nextcloud.com>
Thu, 24 Nov 2022 11:20:27 +0000 (12:20 +0100)
committerCôme Chilliet <come.chilliet@nextcloud.com>
Thu, 24 Nov 2022 11:20:27 +0000 (12:20 +0100)
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
apps/theming/tests/ThemingDefaultsTest.php

index 445ffd2b0a7ddced301ec3897fb5986683e8af15..fafa1fd450cad48fc16c1293dd7513f8ee390b7f 100644 (file)
@@ -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());
        }