Skip to content

Commit aea6688

Browse files
committed
fix: unit test
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 26f429e commit aea6688

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/php/Unit/Service/SignFileServiceTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,8 @@ public function testSignWithFileNotFound():void {
264264
$file = new \OCA\Libresign\Db\File();
265265
$file->setUserId('username');
266266

267+
$this->root->method('getFirstNodeById')
268+
->willThrowException(new NotFoundException('File not found'));
267269
$this->root->method('getUserFolder')
268270
->willReturn($this->root);
269271

0 commit comments

Comments
 (0)