add "duration + fixed start time" tracking mode (#859)
This commit is contained in:
@@ -15,6 +15,8 @@ use App\Entity\Activity;
|
||||
use App\Entity\Customer;
|
||||
use App\Entity\Project;
|
||||
use App\Entity\Timesheet;
|
||||
use App\Tests\Mocks\Security\UserDateTimeFactoryFactory;
|
||||
use App\Timesheet\TrackingModeService;
|
||||
use App\Validator\Constraints\Timesheet as TimesheetConstraint;
|
||||
use App\Validator\Constraints\TimesheetValidator;
|
||||
use Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface;
|
||||
@@ -38,8 +40,10 @@ class TimesheetValidatorTest extends ConstraintValidatorTestCase
|
||||
],
|
||||
'mode' => 'default',
|
||||
]);
|
||||
$dateTime = (new UserDateTimeFactoryFactory($this))->create();
|
||||
$service = new TrackingModeService($dateTime, $config);
|
||||
|
||||
return new TimesheetValidator($authMock, $config);
|
||||
return new TimesheetValidator($authMock, $config, $service);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user