diff --git a/tests/Endpoints/SSLTest.php b/tests/Endpoints/SSLTest.php index bfbaf66..1f0fc53 100644 --- a/tests/Endpoints/SSLTest.php +++ b/tests/Endpoints/SSLTest.php @@ -150,11 +150,11 @@ class SSLTest extends TestCase ->method('patch') ->with( $this->equalTo('zones/c2547eb745079dac9320b638f5e225cf483cc5cfdda41/ssl/verification/a77f8bd7-3b47-46b4-a6f1-75cf98109948'), - $this->equalTo(['validation_method' => 'cname']) + $this->equalTo(['validation_method' => 'txt']) ); $sslMock = new \Cloudflare\API\Endpoints\SSL($mock); - $result = $sslMock->updateSSLCertificatePackValidationMethod('c2547eb745079dac9320b638f5e225cf483cc5cfdda41', 'a77f8bd7-3b47-46b4-a6f1-75cf98109948', 'cname'); + $result = $sslMock->updateSSLCertificatePackValidationMethod('c2547eb745079dac9320b638f5e225cf483cc5cfdda41', 'a77f8bd7-3b47-46b4-a6f1-75cf98109948', 'txt'); $this->assertTrue($result); } diff --git a/tests/Fixtures/Endpoints/updateSSLCertificatePackValidationMethod.json b/tests/Fixtures/Endpoints/updateSSLCertificatePackValidationMethod.json index 878457d..5e2d5e2 100644 --- a/tests/Fixtures/Endpoints/updateSSLCertificatePackValidationMethod.json +++ b/tests/Fixtures/Endpoints/updateSSLCertificatePackValidationMethod.json @@ -2,5 +2,8 @@ "success": true, "errors": [], "messages": [], - "result": "off" + "result": { + "validation_method": "txt", + "status": "pending_validation" + } } \ No newline at end of file