getTestCase()))->create(); $loader = new TestConfigLoader([]); $configuration = new TimesheetConfiguration($loader, ['mode' => $mode]); if (null === $modes) { $modes = [ new DefaultMode($dateTime, $configuration, (new RoundingServiceFactory($this->getTestCase()))->create()), new PunchInOutMode($dateTime), new DurationOnlyMode($dateTime, $configuration), new DurationFixedBeginMode($dateTime, $configuration), ]; } return new TrackingModeService($configuration, $modes); } }