Skip to content

Commit

Permalink
remove unused declared method
Browse files Browse the repository at this point in the history
  • Loading branch information
giovannism20 committed Nov 23, 2023
1 parent 5884470 commit 383af21
Showing 1 changed file with 0 additions and 37 deletions.
37 changes: 0 additions & 37 deletions tests/Unit/Service/AccountServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -330,43 +330,6 @@ public function testValidateCertificateDataWithSuccess() {
$this->assertNull($actual);
}

private function mockValidateWithSuccess() {
$signRequest = $this->createMock(SignRequest::class);
$signRequest
->method('__call')
->withConsecutive(
[$this->equalTo('getId')],
[$this->equalTo('getFileId')],
[$this->equalTo('getUserId')],
[$this->equalTo('getNodeId')],
)
->will($this->returnValueMap([
['getId', [], 1],
['getFileId', [], 171],
['getUserId', [], 'username'],
['getNodeId', [], 171],
]));
$libresignFile = $this->createMock(\OCA\Libresign\Db\File::class);
$this->fileMapper
->method('getById')
->will($this->returnValue($libresignFile));
$this->signRequestMapper
->method('getByUuid')
->will($this->returnValue($signRequest));

$this->root
->method('getById')
->will($this->returnValue(['fileToSign']));
$file = $this->createMock(\OCP\Files\File::class);
$folder = $this->createMock(\OCP\Files\Folder::class);
$folder
->method('getById')
->willReturn([$file]);
$this->root
->method('getUserFolder')
->willReturn($folder);
}

public function testCreateToSignWithErrorInSendingEmail() {
$signRequest = $this->createMock(\OCA\Libresign\Db\SignRequest::class);
$signRequest
Expand Down

0 comments on commit 383af21

Please sign in to comment.