@@ -78,6 +78,8 @@ public function dataGetCapabilities() {
7878 'color ' => '#FFFFFF ' ,
7979 'color-text ' => '#000000 ' ,
8080 'color-element ' => '#aaaaaa ' ,
81+ 'color-element-bright ' => '#aaaaaa ' ,
82+ 'color-element-dark ' => '#FFFFFF ' ,
8183 'logo ' => 'http://absolute/logo ' ,
8284 'background ' => 'http://absolute/background ' ,
8385 'background-plain ' => false ,
@@ -92,6 +94,8 @@ public function dataGetCapabilities() {
9294 'color ' => '#01e4a0 ' ,
9395 'color-text ' => '#ffffff ' ,
9496 'color-element ' => '#01e4a0 ' ,
97+ 'color-element-bright ' => '#01e4a0 ' ,
98+ 'color-element-dark ' => '#01e4a0 ' ,
9599 'logo ' => 'http://localhost/logo5 ' ,
96100 'background ' => 'http://localhost/background6 ' ,
97101 'background-plain ' => false ,
@@ -106,6 +110,8 @@ public function dataGetCapabilities() {
106110 'color ' => '#000000 ' ,
107111 'color-text ' => '#ffffff ' ,
108112 'color-element ' => '#000000 ' ,
113+ 'color-element-bright ' => '#000000 ' ,
114+ 'color-element-dark ' => '#555555 ' ,
109115 'logo ' => 'http://localhost/logo5 ' ,
110116 'background ' => '#000000 ' ,
111117 'background-plain ' => true ,
@@ -120,6 +126,8 @@ public function dataGetCapabilities() {
120126 'color ' => '#000000 ' ,
121127 'color-text ' => '#ffffff ' ,
122128 'color-element ' => '#000000 ' ,
129+ 'color-element-bright ' => '#000000 ' ,
130+ 'color-element-dark ' => '#555555 ' ,
123131 'logo ' => 'http://localhost/logo5 ' ,
124132 'background ' => '#000000 ' ,
125133 'background-plain ' => true ,
@@ -167,10 +175,12 @@ public function testGetCapabilities($name, $url, $slogan, $color, $textColor, $l
167175 ->willReturn ($ textColor );
168176
169177 $ util = new Util ($ this ->config , $ this ->createMock (IAppManager::class), $ this ->createMock (IAppData::class));
170- $ this ->util ->expects ($ this ->once ( ))
178+ $ this ->util ->expects ($ this ->exactly ( 3 ))
171179 ->method ('elementColor ' )
172180 ->with ($ color )
173- ->willReturn ($ util ->elementColor ($ color ));
181+ ->willReturnCallback (static function (string $ color , bool $ brightBackground = true ) use ($ util ) {
182+ return $ util ->elementColor ($ color , $ brightBackground );
183+ });
174184
175185 $ this ->util ->expects ($ this ->once ())
176186 ->method ('isBackgroundThemed ' )
0 commit comments