public function testStoreDomainCertificate() { parent::testStoreDomainCertificate(); $this->assertEquals(self::$certPem . "\n", $this->backup->read('certs/example.com/cert.pem')); $this->assertEquals(self::$issuerCertPem . "\n", $this->backup->read('certs/example.com/chain.pem')); $this->assertEquals(self::$certPem . "\n" . self::$issuerCertPem . "\n", $this->backup->read('certs/example.com/fullchain.pem')); $this->assertEquals(self::$certPem . "\n" . self::$issuerCertPem . "\nprivate\n", $this->backup->read('certs/example.com/combined.pem')); }
public function testStoreDomainCertificate() { parent::testStoreDomainCertificate(); $this->assertFalse($this->backup->has('certs/example.com/cert.pem')); $this->assertFalse($this->backup->has('certs/example.com/chain.pem')); $this->assertFalse($this->backup->has('certs/example.com/fullchain.pem')); $this->assertFalse($this->backup->has('certs/example.com/combined.pem')); }