1616use OCP \AppFramework \Services \IInitialState ;
1717use OCP \IConfig ;
1818use OCP \IL10N ;
19- use OCP \INavigationManager ;
2019use OCP \IRequest ;
2120use OCP \IURLGenerator ;
2221use PHPUnit \Framework \MockObject \MockObject ;
@@ -30,8 +29,6 @@ final class PageControllerTest extends TestCase {
3029
3130 private IConfig &MockObject $ config ;
3231
33- private INavigationManager &MockObject $ navigationManager ;
34-
3532 private IAppManager &MockObject $ appManager ;
3633
3734 private BundleFetcher &MockObject $ bundleFetcher ;
@@ -54,7 +51,6 @@ protected function setUp(): void {
5451 ->method ('t ' )
5552 ->willReturnArgument (0 );
5653 $ this ->config = $ this ->createMock (IConfig::class);
57- $ this ->navigationManager = $ this ->createMock (INavigationManager::class);
5854 $ this ->appManager = $ this ->createMock (IAppManager::class);
5955 $ this ->bundleFetcher = $ this ->createMock (BundleFetcher::class);
6056 $ this ->installer = $ this ->createMock (Installer::class);
@@ -70,7 +66,6 @@ protected function setUp(): void {
7066 $ this ->urlGenerator ,
7167 $ this ->initialState ,
7268 $ this ->bundleFetcher ,
73- $ this ->navigationManager ,
7469 );
7570 }
7671
@@ -84,10 +79,6 @@ public function testViewApps(): void {
8479 ->method ('getSystemValueBool ' )
8580 ->with ('appstoreenabled ' , true )
8681 ->willReturn (true );
87- $ this ->navigationManager
88- ->expects ($ this ->once ())
89- ->method ('setActiveEntry ' )
90- ->with ('core_apps ' );
9182
9283 $ this ->initialState
9384 ->expects ($ this ->exactly (4 ))
@@ -117,10 +108,6 @@ public function testViewAppsAppstoreNotEnabled(): void {
117108 ->method ('getSystemValueBool ' )
118109 ->with ('appstoreenabled ' , true )
119110 ->willReturn (false );
120- $ this ->navigationManager
121- ->expects ($ this ->once ())
122- ->method ('setActiveEntry ' )
123- ->with ('core_apps ' );
124111
125112 $ this ->initialState
126113 ->expects ($ this ->exactly (4 ))
0 commit comments