@@ -284,7 +284,7 @@ public function testSignGenerateASha256OfSignedFile(string $signedContent):void
284284 $ nextcloudFile = $ this ->createMock (\OCP \Files \File::class);
285285 $ nextcloudFile ->method ('getContent ' )->willReturn ($ signedContent );
286286 $ service ->method ('getNextcloudFile ' )->willReturn ($ nextcloudFile );
287- $ service ->method ('validateDocMdpAllowsSignatures ' )-> willReturn ( null ) ;
287+ $ service ->method ('validateDocMdpAllowsSignatures ' );
288288
289289 $ pkcs12Handler = $ this ->createMock (Pkcs12Handler::class);
290290 $ pkcs12Handler ->method ('sign ' )->willReturn ($ nextcloudFile );
@@ -340,7 +340,7 @@ public function testUpdateDatabaseWhenSign(): void {
340340 $ nextcloudFile = $ this ->createMock (\OCP \Files \File::class);
341341 $ nextcloudFile ->method ('getContent ' )->willReturn ('pdf content ' );
342342 $ service ->method ('getNextcloudFile ' )->willReturn ($ nextcloudFile );
343- $ service ->method ('validateDocMdpAllowsSignatures ' )-> willReturn ( null ) ;
343+ $ service ->method ('validateDocMdpAllowsSignatures ' );
344344
345345 $ this ->fileMapper ->expects ($ this ->once ())->method ('update ' );
346346 $ this ->signRequestMapper ->expects ($ this ->once ())->method ('update ' );
@@ -381,7 +381,7 @@ public function testDispatchEventWhenSign(): void {
381381 $ nextcloudFile = $ this ->createMock (\OCP \Files \File::class);
382382 $ nextcloudFile ->method ('getContent ' )->willReturn ('pdf content ' );
383383 $ service ->method ('getNextcloudFile ' )->willReturn ($ nextcloudFile );
384- $ service ->method ('validateDocMdpAllowsSignatures ' )-> willReturn ( null ) ;
384+ $ service ->method ('validateDocMdpAllowsSignatures ' );
385385
386386 $ this ->eventDispatcher
387387 ->expects ($ this ->once ())
0 commit comments