prevent duplicate if overlapping records are disabled (#2311)

This commit is contained in:
Kevin Papst
2021-02-06 17:31:14 +01:00
committed by GitHub
parent 8d41fa20bd
commit 9eb25c412e
9 changed files with 2110 additions and 1130 deletions

View File

@@ -210,11 +210,12 @@ class TimesheetVoterTest extends AbstractVoterTest
'lockdown_period_start' => $lockdownBegin,
'lockdown_period_end' => $lockdownEnd,
'lockdown_grace_period' => $lockdownGrace,
'allow_overlapping_records' => true,
],
]
]);
$voter = new TimesheetVoter($this->getRolePermissionManager(), new LockdownService($config));
$voter = new TimesheetVoter($this->getRolePermissionManager(), new LockdownService($config), $config);
self::assertInstanceOf(Voter::class, $voter);
return $voter;