Updated TLS.php and added new endpoints to new ZoneSettings.php

This commit is contained in:
Paul Adams
2019-02-22 23:54:14 +00:00
commit 2b25365988
121 changed files with 9067 additions and 0 deletions

23
tests/Auth/APIKeyTest.php Normal file
View File

@@ -0,0 +1,23 @@
<?php
/**
* User: junade
* Date: 13/01/2017
* Time: 17:15
*/
class APIKeyTest extends TestCase
{
public function testGetHeaders()
{
$auth = new \Cloudflare\API\Auth\APIKey('example@example.com', '1234567893feefc5f0q5000bfo0c38d90bbeb');
$headers = $auth->getHeaders();
$this->assertArrayHasKey('X-Auth-Key', $headers);
$this->assertArrayHasKey('X-Auth-Email', $headers);
$this->assertEquals('example@example.com', $headers['X-Auth-Email']);
$this->assertEquals('1234567893feefc5f0q5000bfo0c38d90bbeb', $headers['X-Auth-Key']);
$this->assertCount(2, $headers);
}
}