Adds a setting to disable first time wizard for new users (#5938)

This commit is contained in:
Tobias Perschon
2026-05-23 18:48:42 +02:00
committed by GitHub
parent eeeeae41e7
commit 8d245ae223
10 changed files with 146 additions and 6 deletions

View File

@@ -105,6 +105,9 @@ class SystemConfigurationTest extends TestCase
'company' => 'Acme Corp.',
],
],
'user' => [
'wizard' => true,
],
];
}
@@ -125,6 +128,7 @@ class SystemConfigurationTest extends TestCase
(new Configuration())->setName('timesheet.markdown_content')->setValue('1'),
(new Configuration())->setName('timesheet.default_begin')->setValue('07:00'),
(new Configuration())->setName('timesheet.active_entries.hard_limit')->setValue('7'),
(new Configuration())->setName('user.wizard')->setValue(false),
];
}
@@ -226,6 +230,18 @@ class SystemConfigurationTest extends TestCase
self::assertEquals('IT', $sut->getUserDefaultLanguage());
}
public function testUserWizardWithoutLoader(): void
{
$sut = $this->getSut($this->getDefaultSettings(), []);
self::assertTrue($sut->isUserWizardActive());
}
public function testUserWizardWithLoader(): void
{
$sut = $this->getSut($this->getDefaultSettings(), $this->getDefaultLoaderSettings());
self::assertFalse($sut->isUserWizardActive());
}
public function testTimesheetWithoutLoader(): void
{
$sut = $this->getSut($this->getDefaultSettings(), []);