Adds a setting to disable first time wizard for new users (#5938)
This commit is contained in:
@@ -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(), []);
|
||||
|
||||
Reference in New Issue
Block a user