Skip to content

Commit

Permalink
WIP4
Browse files Browse the repository at this point in the history
Signed-off-by: Simon L <[email protected]>
  • Loading branch information
szaimen committed Oct 31, 2023
1 parent 2a974aa commit 4727864
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions apps/theming/tests/ThemingDefaultsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -474,9 +474,6 @@ public function testGetColorPrimaryWithDefaultBackground() {
}

public function testGetColorPrimaryWithCustomBackground() {
$backgroundIndex = 2;
$background = array_values($this->backgroundService->getShippedBackgrounds())[$backgroundIndex];

$user = $this->createMock(IUser::class);
$this->userSession->expects($this->any())
->method('getUser')
Expand All @@ -489,7 +486,7 @@ public function testGetColorPrimaryWithCustomBackground() {
->expects($this->once())
->method('getUserValue')
->with('user', 'theming', 'background_color', '')
->willReturn($background['primary_color']);
->willReturn('#04577e');

$this->config
->expects($this->exactly(2))
Expand All @@ -499,7 +496,7 @@ public function testGetColorPrimaryWithCustomBackground() {
['theming', 'disable-user-theming', 'no', 'no'],
]);

$this->assertEquals($background['primary_color'], $this->template->getColorPrimary());
$this->assertEquals('#04577e', $this->template->getColorPrimary());
}

public function testGetColorPrimaryWithCustomBackgroundColor() {
Expand Down

0 comments on commit 4727864

Please sign in to comment.