Fix theming tests
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
e4c58fc473
commit
5dbf733395
|
@ -517,18 +517,12 @@ class ThemingDefaultsTest extends TestCase {
|
||||||
['theming.Theming.getLoginBackground', [], 'custom-background'],
|
['theming.Theming.getLoginBackground', [], 'custom-background'],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$this->urlGenerator->expects($this->exactly(2))
|
|
||||||
->method('getAbsoluteURL')
|
|
||||||
->willReturnCallback(function ($path) {
|
|
||||||
return 'absolute-' . $path;
|
|
||||||
});
|
|
||||||
|
|
||||||
$expected = [
|
$expected = [
|
||||||
'theming-cachebuster' => '\'0\'',
|
'theming-cachebuster' => '\'0\'',
|
||||||
'theming-logo-mime' => '\'jpeg\'',
|
'theming-logo-mime' => '\'jpeg\'',
|
||||||
'theming-background-mime' => '\'jpeg\'',
|
'theming-background-mime' => '\'jpeg\'',
|
||||||
'image-logo' => "'absolute-custom-logo?v=0'",
|
'image-logo' => "'custom-logo?v=0'",
|
||||||
'image-login-background' => "'absolute-custom-background?v=0'",
|
'image-login-background' => "'custom-background?v=0'",
|
||||||
'color-primary' => $this->defaults->getColorPrimary(),
|
'color-primary' => $this->defaults->getColorPrimary(),
|
||||||
'color-primary-text' => '#ffffff',
|
'color-primary-text' => '#ffffff',
|
||||||
'image-login-plain' => 'false',
|
'image-login-plain' => 'false',
|
||||||
|
|
Loading…
Reference in New Issue