['mode' => $mode]]); $auth = $this->createMock(AuthorizationCheckerInterface::class); if (null === $modes) { $modes = [ new DefaultMode((new RoundingServiceFactory($this->getTestCase()))->create()), new PunchInOutMode($auth), new DurationFixedBeginMode($configuration, $auth), ]; } return new TrackingModeService($configuration, $modes); } }