Skip to content

Commit

Permalink
fix(theming): Bump app version
Browse files Browse the repository at this point in the history
Signed-off-by: Ferdinand Thiessen <[email protected]>
  • Loading branch information
susnux committed Jan 30, 2025
1 parent d608ce5 commit 2d8432f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion apps/theming/appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@

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;
Expand Down Expand Up @@ -92,8 +92,8 @@ public function testRestoreUserColors(): void {
$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);
Expand Down Expand Up @@ -144,10 +144,10 @@ public function testRestoreUserColorsWithConflicts(): void {
$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);
Expand Down

0 comments on commit 2d8432f

Please sign in to comment.