AcmePhp\Cli\Repository\Repository::hasAccountKeyPair PHP Method

hasAccountKeyPair() public method

public hasAccountKeyPair ( )
    public function hasAccountKeyPair()
    {
        return $this->master->has('private/_account/private.pem');
    }

Usage Example

 public function testLoadAccountKeyPair()
 {
     $keyPair = new KeyPair(new PublicKey("public\n"), new PrivateKey("private\n"));
     $this->assertFalse($this->repository->hasAccountKeyPair());
     $this->repository->storeAccountKeyPair($keyPair);
     $this->assertTrue($this->repository->hasAccountKeyPair());
     $this->assertEquals($keyPair, $this->repository->loadAccountKeyPair());
 }