diff options
-rw-r--r-- | apps/theming/appinfo/info.xml | 2 | ||||
-rw-r--r-- | apps/theming/tests/Migration/Version2006Date20240905111627Test.php | 14 |
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); |