allow to configure timezone for the lockdown period (#2593)

This commit is contained in:
Kevin Papst
2021-06-02 00:05:44 +02:00
committed by GitHub
parent c1eb5ba90a
commit 286b63e2c8
16 changed files with 163 additions and 41 deletions

View File

@@ -20,7 +20,7 @@ use PHPUnit\Framework\TestCase;
*/
class LockdownServiceTest extends TestCase
{
protected function createService(?string $start, ?string $end, ?string $grace)
protected function createService(?string $start, ?string $end, ?string $grace, ?string $timezone = null)
{
$loader = $this->createMock(ConfigLoaderInterface::class);
$config = new SystemConfiguration($loader, [
@@ -28,6 +28,7 @@ class LockdownServiceTest extends TestCase
'rules' => [
'lockdown_period_start' => $start,
'lockdown_period_end' => $end,
'lockdown_period_timezone' => $timezone,
'lockdown_grace_period' => $grace,
],
]