fix default calendar config (#918)
This commit is contained in:
@@ -265,7 +265,7 @@ class Configuration implements ConfigurationInterface
|
||||
->addDefaultsIfNotSet()
|
||||
->children()
|
||||
->scalarNode('begin')->defaultValue('00:00')->end()
|
||||
->scalarNode('end')->defaultValue('24:00')->end()
|
||||
->scalarNode('end')->defaultValue('23:59')->end()
|
||||
->end()
|
||||
->end()
|
||||
->arrayNode('google')
|
||||
|
||||
@@ -232,7 +232,7 @@ class SystemConfigurationControllerTest extends ControllerBaseTest
|
||||
$this->assertEquals('08:00', $configService->find('calendar.businessHours.begin'));
|
||||
$this->assertEquals('20:00', $configService->find('calendar.businessHours.end'));
|
||||
$this->assertEquals('00:00', $configService->find('calendar.visibleHours.begin'));
|
||||
$this->assertEquals('24:00', $configService->find('calendar.visibleHours.end'));
|
||||
$this->assertEquals('23:59', $configService->find('calendar.visibleHours.end'));
|
||||
|
||||
$form = $client->getCrawler()->filter('form[name=system_configuration_form_calendar]')->form();
|
||||
$client->submit($form, [
|
||||
|
||||
@@ -70,7 +70,7 @@ class AppExtensionTest extends TestCase
|
||||
],
|
||||
'visibleHours' => [
|
||||
'begin' => '00:00',
|
||||
'end' => '24:00',
|
||||
'end' => '23:59',
|
||||
],
|
||||
'google' => [
|
||||
'api_key' => null,
|
||||
|
||||
Reference in New Issue
Block a user