|
|
|
|
@ -17,7 +17,6 @@ use OCP\AppFramework\Http\TemplateResponse; |
|
|
|
|
use OCP\AppFramework\Services\IInitialState; |
|
|
|
|
use OCP\IConfig; |
|
|
|
|
use OCP\IL10N; |
|
|
|
|
use OCP\INavigationManager; |
|
|
|
|
use OCP\IRequest; |
|
|
|
|
use OCP\IURLGenerator; |
|
|
|
|
use PHPUnit\Framework\MockObject\MockObject; |
|
|
|
|
@ -31,8 +30,6 @@ final class PageControllerTest extends TestCase { |
|
|
|
|
|
|
|
|
|
private IConfig&MockObject $config; |
|
|
|
|
|
|
|
|
|
private INavigationManager&MockObject $navigationManager; |
|
|
|
|
|
|
|
|
|
private IAppManager&MockObject $appManager; |
|
|
|
|
|
|
|
|
|
private BundleFetcher&MockObject $bundleFetcher; |
|
|
|
|
@ -55,7 +52,6 @@ final class PageControllerTest extends TestCase { |
|
|
|
|
->method('t') |
|
|
|
|
->willReturnArgument(0); |
|
|
|
|
$this->config = $this->createMock(IConfig::class); |
|
|
|
|
$this->navigationManager = $this->createMock(INavigationManager::class); |
|
|
|
|
$this->appManager = $this->createMock(IAppManager::class); |
|
|
|
|
$this->bundleFetcher = $this->createMock(BundleFetcher::class); |
|
|
|
|
$this->installer = $this->createMock(Installer::class); |
|
|
|
|
@ -71,7 +67,6 @@ final class PageControllerTest extends TestCase { |
|
|
|
|
$this->urlGenerator, |
|
|
|
|
$this->initialState, |
|
|
|
|
$this->bundleFetcher, |
|
|
|
|
$this->navigationManager, |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -85,10 +80,6 @@ final class PageControllerTest extends TestCase { |
|
|
|
|
->method('getSystemValueBool') |
|
|
|
|
->with('appstoreenabled', true) |
|
|
|
|
->willReturn(true); |
|
|
|
|
$this->navigationManager |
|
|
|
|
->expects($this->once()) |
|
|
|
|
->method('setActiveEntry') |
|
|
|
|
->with('core_apps'); |
|
|
|
|
|
|
|
|
|
$this->initialState |
|
|
|
|
->expects($this->exactly(4)) |
|
|
|
|
@ -118,10 +109,6 @@ final class PageControllerTest extends TestCase { |
|
|
|
|
->method('getSystemValueBool') |
|
|
|
|
->with('appstoreenabled', true) |
|
|
|
|
->willReturn(false); |
|
|
|
|
$this->navigationManager |
|
|
|
|
->expects($this->once()) |
|
|
|
|
->method('setActiveEntry') |
|
|
|
|
->with('core_apps'); |
|
|
|
|
|
|
|
|
|
$this->initialState |
|
|
|
|
->expects($this->exactly(4)) |
|
|
|
|
|