Skip to content

Commit 2d8432f

Browse files
committed
fix(theming): Bump app version
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
1 parent d608ce5 commit 2d8432f

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

apps/theming/appinfo/info.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<name>Theming</name>
1010
<summary>Adjust the Nextcloud theme</summary>
1111
<description>Adjust the Nextcloud theme</description>
12-
<version>2.5.0</version>
12+
<version>2.6.0</version>
1313
<licence>agpl</licence>
1414
<author>Nextcloud</author>
1515
<namespace>Theming</namespace>

apps/theming/tests/Migration/Version2006Date20240905111627Test.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99

1010
namespace OCA\Theming\Tests\Migration;
1111

12-
use NCU\Config\IUserConfig;
1312
use OCA\Theming\Migration\Version2006Date20240905111627;
1413
use OCP\BackgroundJob\IJobList;
1514
use OCP\IAppConfig;
15+
use OCP\IConfig;
1616
use OCP\IDBConnection;
1717
use OCP\IUserManager;
1818
use OCP\Migration\IOutput;
@@ -92,8 +92,8 @@ public function testRestoreUserColors(): void {
9292
$user = $manager->createUser('theming_legacy', 'theming_legacy');
9393
self::assertNotFalse($user);
9494
// Set the users theming value to legacy key
95-
$config = \OCP\Server::get(IUserConfig::class);
96-
$config->setValueString('theming_legacy', 'theming', 'background_color', 'ffab00');
95+
$config = \OCP\Server::get(IConfig::class);
96+
$config->setUserValue($user->getUID(), 'theming', 'background_color', 'ffab00');
9797

9898
// expect some output
9999
$output = $this->createMock(IOutput::class);
@@ -144,10 +144,10 @@ public function testRestoreUserColorsWithConflicts(): void {
144144
$user = $manager->createUser('theming_no_legacy', 'theming_no_legacy');
145145
self::assertNotFalse($user);
146146
// Set the users theming value to legacy key
147-
$config = \OCP\Server::get(IUserConfig::class);
148-
$config->setValueString($user->getUID(), 'theming', 'primary_color', '999999');
149-
$config->setValueString($user->getUID(), 'theming', 'background_color', '111111');
150-
$config->setValueString($legacyUser->getUID(), 'theming', 'background_color', 'ffab00');
147+
$config = \OCP\Server::get(IConfig::class);
148+
$config->setUserValue($user->getUID(), 'theming', 'primary_color', '999999');
149+
$config->setUserValue($user->getUID(), 'theming', 'background_color', '111111');
150+
$config->setUserValue($legacyUser->getUID(), 'theming', 'background_color', 'ffab00');
151151

152152
// expect some output
153153
$output = $this->createMock(IOutput::class);

0 commit comments

Comments
 (0)