Skip to content

Commit 007a7b4

Browse files
committed
fix: changes after add new parameter to constructor
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 4628fdf commit 007a7b4

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tests/php/Unit/Service/ReminderServiceTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
use OCP\Server;
1919
use PHPUnit\Framework\Attributes\DataProvider;
2020
use PHPUnit\Framework\MockObject\MockObject;
21+
use Psr\Log\LoggerInterface;
2122

2223
final class ReminderServiceTest extends \OCA\Libresign\Tests\Unit\TestCase {
2324
protected IJobList|MockObject $jobList;
@@ -26,6 +27,7 @@ final class ReminderServiceTest extends \OCA\Libresign\Tests\Unit\TestCase {
2627
protected ITimeFactory|MockObject $time;
2728
protected SignRequestMapper|MockObject $signRequestMapper;
2829
protected IdentifyMethodService|MockObject $identifyMethodService;
30+
protected LoggerInterface|MockObject $logger;
2931

3032
public function setUp(): void {
3133
$this->jobList = $this->createMock(IJobList::class);
@@ -34,6 +36,7 @@ public function setUp(): void {
3436
$this->time = $this->createMock(ITimeFactory::class);
3537
$this->signRequestMapper = $this->createMock(SignRequestMapper::class);
3638
$this->identifyMethodService = $this->createMock(IdentifyMethodService::class);
39+
$this->logger = $this->createMock(LoggerInterface::class);
3740
}
3841

3942
private function getService(array $methods = []): ReminderService|MockObject {
@@ -46,6 +49,7 @@ private function getService(array $methods = []): ReminderService|MockObject {
4649
$this->time,
4750
$this->signRequestMapper,
4851
$this->identifyMethodService,
52+
$this->logger,
4953
])
5054
->onlyMethods($methods)
5155
->getMock();
@@ -57,6 +61,7 @@ private function getService(array $methods = []): ReminderService|MockObject {
5761
$this->time,
5862
$this->signRequestMapper,
5963
$this->identifyMethodService,
64+
$this->logger,
6065
);
6166
}
6267

0 commit comments

Comments
 (0)