mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 09:42:09 -04:00
chore(tests): Adapt TemplateLayoutTest to constructor change
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
49cf5ba318
commit
34d7a957e0
1 changed files with 4 additions and 0 deletions
|
|
@ -15,6 +15,7 @@ use OCP\App\IAppManager;
|
|||
use OCP\AppFramework\Http\TemplateResponse;
|
||||
use OCP\IConfig;
|
||||
use OCP\INavigationManager;
|
||||
use OCP\ServerVersion;
|
||||
use OCP\Template\ITemplateManager;
|
||||
use PHPUnit\Framework\MockObject\MockObject;
|
||||
|
||||
|
|
@ -24,6 +25,7 @@ class TemplateLayoutTest extends \Test\TestCase {
|
|||
private InitialStateService&MockObject $initialState;
|
||||
private INavigationManager&MockObject $navigationManager;
|
||||
private ITemplateManager&MockObject $templateManager;
|
||||
private ServerVersion&MockObject $serverVersion;
|
||||
|
||||
private TemplateLayout $templateLayout;
|
||||
|
||||
|
|
@ -35,6 +37,7 @@ class TemplateLayoutTest extends \Test\TestCase {
|
|||
$this->initialState = $this->createMock(InitialStateService::class);
|
||||
$this->navigationManager = $this->createMock(INavigationManager::class);
|
||||
$this->templateManager = $this->createMock(ITemplateManager::class);
|
||||
$this->serverVersion = $this->createMock(ServerVersion::class);
|
||||
}
|
||||
|
||||
/** @dataProvider dataVersionHash */
|
||||
|
|
@ -69,6 +72,7 @@ class TemplateLayoutTest extends \Test\TestCase {
|
|||
$this->initialState,
|
||||
$this->navigationManager,
|
||||
$this->templateManager,
|
||||
$this->serverVersion,
|
||||
])
|
||||
->getMock();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue