fix test for new css vars / logoheader and favicon
Signed-off-by: Guillaume COMPAGNON <gcompagnon@outlook.com>
This commit is contained in:
parent
ed399a31bd
commit
761f331d1e
|
@ -78,6 +78,8 @@ class CapabilitiesTest extends TestCase {
|
|||
'background' => 'http://absolute/background',
|
||||
'background-plain' => false,
|
||||
'background-default' => false,
|
||||
'logoheader' => 'http://absolute/logo',
|
||||
'favicon' => 'http://absolute/logo',
|
||||
]],
|
||||
['name1', 'url2', 'slogan3', '#01e4a0', '#ffffff', 'logo5', 'background6', 'http://localhost/', false, [
|
||||
'name' => 'name1',
|
||||
|
@ -90,6 +92,8 @@ class CapabilitiesTest extends TestCase {
|
|||
'background' => 'http://localhost/background6',
|
||||
'background-plain' => false,
|
||||
'background-default' => true,
|
||||
'logoheader' => 'http://localhost/logo5',
|
||||
'favicon' => 'http://localhost/logo5',
|
||||
]],
|
||||
['name1', 'url2', 'slogan3', '#000000', '#ffffff', 'logo5', 'backgroundColor', 'http://localhost/', true, [
|
||||
'name' => 'name1',
|
||||
|
@ -102,6 +106,8 @@ class CapabilitiesTest extends TestCase {
|
|||
'background' => '#000000',
|
||||
'background-plain' => true,
|
||||
'background-default' => false,
|
||||
'logoheader' => 'http://localhost/logo5',
|
||||
'favicon' => 'http://localhost/logo5',
|
||||
]],
|
||||
['name1', 'url2', 'slogan3', '#000000', '#ffffff', 'logo5', 'backgroundColor', 'http://localhost/', false, [
|
||||
'name' => 'name1',
|
||||
|
@ -114,6 +120,8 @@ class CapabilitiesTest extends TestCase {
|
|||
'background' => '#000000',
|
||||
'background-plain' => true,
|
||||
'background-default' => true,
|
||||
'logoheader' => 'http://localhost/logo5',
|
||||
'favicon' => 'http://localhost/logo5',
|
||||
]],
|
||||
];
|
||||
}
|
||||
|
@ -147,7 +155,7 @@ class CapabilitiesTest extends TestCase {
|
|||
$this->theming->expects($this->atLeast(1))
|
||||
->method('getColorPrimary')
|
||||
->willReturn($color);
|
||||
$this->theming->expects($this->once())
|
||||
$this->theming->expects($this->exactly(3))
|
||||
->method('getLogo')
|
||||
->willReturn($logo);
|
||||
$this->theming->expects($this->once())
|
||||
|
@ -168,13 +176,13 @@ class CapabilitiesTest extends TestCase {
|
|||
$this->theming->expects($this->once())
|
||||
->method('getBackground')
|
||||
->willReturn($background);
|
||||
$this->url->expects($this->exactly(2))
|
||||
$this->url->expects($this->exactly(4))
|
||||
->method('getAbsoluteURL')
|
||||
->willReturnCallback(function($url) use($baseUrl) {
|
||||
return $baseUrl . $url;
|
||||
});
|
||||
} else {
|
||||
$this->url->expects($this->once())
|
||||
$this->url->expects($this->exactly(3))
|
||||
->method('getAbsoluteURL')
|
||||
->willReturnCallback(function($url) use($baseUrl) {
|
||||
return $baseUrl . $url;
|
||||
|
|
Loading…
Reference in New Issue