From 1211b644e024ada87e3bf491c0712fca4cffb50a Mon Sep 17 00:00:00 2001 From: Jens Beltofte Date: Thu, 12 Sep 2019 15:10:22 +0200 Subject: [PATCH] Change validation method to txt as in the CF API documentation + change response json file --- tests/Endpoints/SSLTest.php | 4 ++-- .../Endpoints/updateSSLCertificatePackValidationMethod.json | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) 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