public function test storeKeyPair register the client then store the keypair()
 {
     $dummyKeyPair = $this->prophesize(KeyPair::class)->reveal();
     $mockClient = $this->prophesize(AcmeClient::class);
     $mockClient->registerAccount($this->dummyContactEmail)->shouldBeCalled();
     $this->mockClientFactory->createAcmeClient($dummyKeyPair)->shouldBeCalled()->willReturn($mockClient->reveal());
     $this->mockStorage->store($dummyKeyPair)->shouldBeCalled();
     $this->service->storeKeyPair($dummyKeyPair);
 }
 /**
  * Store the given keyPair.
  *
  * @param KeyPair $keyPair
  */
 public function storeKeyPair(KeyPair $keyPair)
 {
     $this->storage->store($keyPair);
 }
 public function test storeKeyPair stores the given keyPair()
 {
     $dummyKeyPair = $this->prophesize(KeyPair::class)->reveal();
     $this->mockStorage->store($dummyKeyPair)->shouldBeCalled();
     $this->service->storeKeyPair($dummyKeyPair);
 }
 public function test getRootPath returns the original storagePath()
 {
     $this->assertSame($this->dummyStoragePath, $this->service->getRootPath());
 }