aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2025-01-30 01:32:15 +0100
committerFerdinand Thiessen <opensource@fthiessen.de>2025-01-30 08:45:32 +0100
commit2d8432f06dcb15c18e57f7e3d6cdafae3fe0124c (patch)
tree3e80878038e5132a57dcd6ef09755fa7670e1e63
parentd608ce54b6bf3aa2922fce8c63ba88f477ec1074 (diff)
downloadnextcloud-server-backport/50503/stable30.tar.gz
nextcloud-server-backport/50503/stable30.zip
fix(theming): Bump app versionbackport/50503/stable30
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
-rw-r--r--apps/theming/appinfo/info.xml2
-rw-r--r--apps/theming/tests/Migration/Version2006Date20240905111627Test.php14
2 files changed, 8 insertions, 8 deletions
diff --git a/apps/theming/appinfo/info.xml b/apps/theming/appinfo/info.xml
index 94fced6c2b7..875090f7e53 100644
--- a/apps/theming/appinfo/info.xml
+++ b/apps/theming/appinfo/info.xml
@@ -9,7 +9,7 @@
<name>Theming</name>
<summary>Adjust the Nextcloud theme</summary>
<description>Adjust the Nextcloud theme</description>
- <version>2.5.0</version>
+ <version>2.6.0</version>
<licence>agpl</licence>
<author>Nextcloud</author>
<namespace>Theming</namespace>
diff --git a/apps/theming/tests/Migration/Version2006Date20240905111627Test.php b/apps/theming/tests/Migration/Version2006Date20240905111627Test.php
index bdd27d08e7f..bc27dd33454 100644
--- a/apps/theming/tests/Migration/Version2006Date20240905111627Test.php
+++ b/apps/theming/tests/Migration/Version2006Date20240905111627Test.php
@@ -9,10 +9,10 @@ declare(strict_types=1);
namespace OCA\Theming\Tests\Migration;
-use NCU\Config\IUserConfig;
use OCA\Theming\Migration\Version2006Date20240905111627;
use OCP\BackgroundJob\IJobList;
use OCP\IAppConfig;
+use OCP\IConfig;
use OCP\IDBConnection;
use OCP\IUserManager;
use OCP\Migration\IOutput;
@@ -92,8 +92,8 @@ class Version2006Date20240905111627Test extends TestCase {
$user = $manager->createUser('theming_legacy', 'theming_legacy');
self::assertNotFalse($user);
// Set the users theming value to legacy key
- $config = \OCP\Server::get(IUserConfig::class);
- $config->setValueString('theming_legacy', 'theming', 'background_color', 'ffab00');
+ $config = \OCP\Server::get(IConfig::class);
+ $config->setUserValue($user->getUID(), 'theming', 'background_color', 'ffab00');
// expect some output
$output = $this->createMock(IOutput::class);
@@ -144,10 +144,10 @@ class Version2006Date20240905111627Test extends TestCase {
$user = $manager->createUser('theming_no_legacy', 'theming_no_legacy');
self::assertNotFalse($user);
// Set the users theming value to legacy key
- $config = \OCP\Server::get(IUserConfig::class);
- $config->setValueString($user->getUID(), 'theming', 'primary_color', '999999');
- $config->setValueString($user->getUID(), 'theming', 'background_color', '111111');
- $config->setValueString($legacyUser->getUID(), 'theming', 'background_color', 'ffab00');
+ $config = \OCP\Server::get(IConfig::class);
+ $config->setUserValue($user->getUID(), 'theming', 'primary_color', '999999');
+ $config->setUserValue($user->getUID(), 'theming', 'background_color', '111111');
+ $config->setUserValue($legacyUser->getUID(), 'theming', 'background_color', 'ffab00');
// expect some output
$output = $this->createMock(IOutput::class);