public function test load use the KeyPairManager to load the stored certificates() { $dummyKeyPair = uniqid(); $this->mockKeyPairManager->loadKeyPair($this->dummyStoragePath . '/public.pem', $this->dummyStoragePath . '/private.pem')->shouldBeCalled()->willReturn($dummyKeyPair); $result = $this->service->load(); $this->assertSame($dummyKeyPair, $result); }
/** * Retrieves the stored KeyPair. * * @return KeyPair */ public function load() { return $this->keyPairManager->loadKeyPair($this->getPublicFilePath(), $this->getPrivateFilePath()); }