1717use OCP \AppFramework \Services \IInitialState ;
1818use OCP \IConfig ;
1919use OCP \IL10N ;
20- use OCP \INavigationManager ;
2120use OCP \IRequest ;
2221use OCP \IURLGenerator ;
2322use PHPUnit \Framework \MockObject \MockObject ;
@@ -31,8 +30,6 @@ final class PageControllerTest extends TestCase {
3130
3231 private IConfig &MockObject $ config ;
3332
34- private INavigationManager &MockObject $ navigationManager ;
35-
3633 private IAppManager &MockObject $ appManager ;
3734
3835 private BundleFetcher &MockObject $ bundleFetcher ;
@@ -55,7 +52,6 @@ protected function setUp(): void {
5552 ->method ('t ' )
5653 ->willReturnArgument (0 );
5754 $ this ->config = $ this ->createMock (IConfig::class);
58- $ this ->navigationManager = $ this ->createMock (INavigationManager::class);
5955 $ this ->appManager = $ this ->createMock (IAppManager::class);
6056 $ this ->bundleFetcher = $ this ->createMock (BundleFetcher::class);
6157 $ this ->installer = $ this ->createMock (Installer::class);
@@ -71,7 +67,6 @@ protected function setUp(): void {
7167 $ this ->urlGenerator ,
7268 $ this ->initialState ,
7369 $ this ->bundleFetcher ,
74- $ this ->navigationManager ,
7570 );
7671 }
7772
@@ -85,10 +80,6 @@ public function testViewApps(): void {
8580 ->method ('getSystemValueBool ' )
8681 ->with ('appstoreenabled ' , true )
8782 ->willReturn (true );
88- $ this ->navigationManager
89- ->expects ($ this ->once ())
90- ->method ('setActiveEntry ' )
91- ->with ('core_apps ' );
9283
9384 $ this ->initialState
9485 ->expects ($ this ->exactly (4 ))
@@ -118,10 +109,6 @@ public function testViewAppsAppstoreNotEnabled(): void {
118109 ->method ('getSystemValueBool ' )
119110 ->with ('appstoreenabled ' , true )
120111 ->willReturn (false );
121- $ this ->navigationManager
122- ->expects ($ this ->once ())
123- ->method ('setActiveEntry ' )
124- ->with ('core_apps ' );
125112
126113 $ this ->initialState
127114 ->expects ($ this ->exactly (4 ))
0 commit comments