added option to use only pre-defined tags (#1463)
This commit is contained in:
@@ -48,6 +48,7 @@ class ThemeConfigurationTest extends TestCase
|
||||
'title' => null,
|
||||
],
|
||||
'auto_reload_datatable' => false,
|
||||
'tags_create' => true,
|
||||
];
|
||||
}
|
||||
|
||||
@@ -61,7 +62,16 @@ class ThemeConfigurationTest extends TestCase
|
||||
{
|
||||
$sut = $this->getSut($this->getDefaultSettings(), []);
|
||||
$this->assertFalse($sut->isAutoReloadDatatable());
|
||||
$this->assertEquals('', $sut->getSelectPicker());
|
||||
$this->assertTrue($sut->isAllowTagCreation());
|
||||
$this->assertNull($sut->getTitle());
|
||||
}
|
||||
|
||||
/**
|
||||
* @group legacy
|
||||
*/
|
||||
public function testDeprecations()
|
||||
{
|
||||
$sut = $this->getSut($this->getDefaultSettings(), []);
|
||||
$this->assertEquals('', $sut->getSelectPicker());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -171,6 +171,7 @@ class AppExtensionTest extends TestCase
|
||||
],
|
||||
'auto_reload_datatable' => false,
|
||||
'autocomplete_chars' => 3,
|
||||
'tags_create' => true,
|
||||
],
|
||||
'kimai.theme.select_type' => 'selectpicker',
|
||||
'kimai.theme.show_about' => true,
|
||||
|
||||
@@ -337,6 +337,7 @@ class ConfigurationTest extends TestCase
|
||||
'translation' => null,
|
||||
],
|
||||
'autocomplete_chars' => 3,
|
||||
'tags_create' => true,
|
||||
],
|
||||
'industry' => [
|
||||
'translation' => null,
|
||||
|
||||
Reference in New Issue
Block a user