Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
  • Loading branch information
ArtificialOwl committed Sep 21, 2022
1 parent 0c9cf4e commit 49c9422
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/lib/Security/IdentityProof/ManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,14 @@ public function testGetKeyWithExistingKey() {
$publicFile
);
$this->appData
->expects($this->once())
->expects($this->exactly(2))
->method('getFolder')
->with('user-MyUid')
->willReturn($folder);
$this->manager
->expects($this->once())
->method('generateKeyPair')
->willReturn(['MyPublicKey', 'MyPrivateKey']);

$expected = new Key('MyPublicKey', 'MyPrivateKey');
$this->assertEquals($expected, $this->manager->getKey($user));
Expand Down

0 comments on commit 49c9422

Please sign in to comment.