1818use OCP \Server ;
1919use PHPUnit \Framework \Attributes \DataProvider ;
2020use PHPUnit \Framework \MockObject \MockObject ;
21+ use Psr \Log \LoggerInterface ;
2122
2223final 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