/** * Create a new instance of KeyPairProvider for the given domain. * * @param string $domain * * @return KeyPairProvider */ public function createKeyPairProvider($domain) { $provider = new KeyPairProvider($this->keyPairManager, $this->storageFactory->createKeyPairStorage($domain)); $provider->setLogger($this->logger); return $provider; }
/** * {@inheritdoc} */ public function storeKeyPair(KeyPair $keyPair) { $this->register($keyPair); parent::storeKeyPair($keyPair); }
public function test storeKeyPair stores the given keyPair() { $dummyKeyPair = $this->prophesize(KeyPair::class)->reveal(); $this->mockStorage->store($dummyKeyPair)->shouldBeCalled(); $this->service->storeKeyPair($dummyKeyPair); }