Skip to content

Commit bc1ea87

Browse files
committed
chore: Adapt tests to TemplateLayout constructor changes
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
1 parent 521bb94 commit bc1ea87

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/lib/TemplateLayoutTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
use OCP\IAppConfig;
1717
use OCP\IConfig;
1818
use OCP\INavigationManager;
19+
use OCP\IRequest;
1920
use OCP\ServerVersion;
2021
use OCP\Template\ITemplateManager;
2122
use PHPUnit\Framework\MockObject\MockObject;
@@ -28,6 +29,7 @@ class TemplateLayoutTest extends \Test\TestCase {
2829
private INavigationManager&MockObject $navigationManager;
2930
private ITemplateManager&MockObject $templateManager;
3031
private ServerVersion&MockObject $serverVersion;
32+
private IRequest&MockObject $request;
3133

3234
private TemplateLayout $templateLayout;
3335

@@ -41,6 +43,7 @@ protected function setUp(): void {
4143
$this->navigationManager = $this->createMock(INavigationManager::class);
4244
$this->templateManager = $this->createMock(ITemplateManager::class);
4345
$this->serverVersion = $this->createMock(ServerVersion::class);
46+
$this->request = $this->createMock(IRequest::class);
4447
}
4548

4649
#[\PHPUnit\Framework\Attributes\DataProvider('dataVersionHash')]
@@ -83,6 +86,7 @@ public function testVersionHash(
8386
$this->navigationManager,
8487
$this->templateManager,
8588
$this->serverVersion,
89+
$this->request,
8690
])
8791
->getMock();
8892

0 commit comments

Comments
 (0)