File tree Expand file tree Collapse file tree
apps/settings/tests/SetupChecks Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212use OCP \AppFramework \Utility \ITimeFactory ;
1313use OCP \IAppConfig ;
1414use OCP \IL10N ;
15+ use OCP \IURLGenerator ;
1516use OCP \SetupCheck \SetupResult ;
1617use OCP \TaskProcessing \IManager ;
1718use OCP \TaskProcessing \Task ;
@@ -23,6 +24,7 @@ class TaskProcessingWorkerIsRunningTest extends TestCase {
2324 private ITimeFactory &MockObject $ timeFactory ;
2425 private IManager &MockObject $ taskProcessingManager ;
2526 private IAppConfig &MockObject $ appConfig ;
27+ private IURLGenerator &MockObject $ urlGenerator ;
2628
2729 private TaskProcessingWorkerIsRunning $ check ;
2830
@@ -33,12 +35,14 @@ protected function setUp(): void {
3335 $ this ->timeFactory = $ this ->getMockBuilder (ITimeFactory::class)->getMock ();
3436 $ this ->taskProcessingManager = $ this ->getMockBuilder (IManager::class)->getMock ();
3537 $ this ->appConfig = $ this ->getMockBuilder (IAppConfig::class)->getMock ();
38+ $ this ->urlGenerator = $ this ->getMockBuilder (IURLGenerator::class)->getMock ();
3639
3740 $ this ->check = new TaskProcessingWorkerIsRunning (
3841 $ this ->l10n ,
3942 $ this ->taskProcessingManager ,
4043 $ this ->timeFactory ,
41- $ this ->appConfig
44+ $ this ->appConfig ,
45+ $ this ->urlGenerator ,
4246 );
4347 }
4448
You can’t perform that action at this time.
0 commit comments