Fix theming tests for PHP 8.2

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
Côme Chilliet 2022-11-24 12:20:27 +01:00
parent 5f3585d817
commit f171de52b3
No known key found for this signature in database
GPG key ID: A3E2F658B28C760A

View 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());
}