Skip to content

Commit e7eb085

Browse files
committed
mock getSystemValueInt
Signed-off-by: szaimen <szaimen@e.mail.de>
1 parent f5b864d commit e7eb085

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

tests/lib/Preview/GeneratorTest.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,13 @@ public function testGetNewPreview() {
158158
->willReturn($previewFolder);
159159

160160
$this->config->method('getSystemValue')
161-
->willReturnCallback(function ($key, $defult) {
162-
return $defult;
161+
->willReturnCallback(function ($key, $default) {
162+
return $deafult;
163+
});
164+
165+
$this->config->method('getSystemValueInt')
166+
->willReturnCallback(function ($key, $default) {
167+
return $default;
163168
});
164169

165170
$invalidProvider = $this->createMock(IProviderV2::class);

0 commit comments

Comments
 (0)