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

View File

@@ -0,0 +1,22 @@
<?php
/**
* Created by PhpStorm.
* User: junade
* Date: 19/09/2017
* Time: 18:41
*/
use Cloudflare\API\Configurations\PageRulesTargets;
class PageRulesTargetTest extends TestCase
{
public function testGetArray()
{
$targets = new PageRulesTargets('junade.com/*');
$array = $targets->getArray();
$this->assertCount(1, $array);
$this->assertEquals('junade.com/*', $array[0]['constraint']['value']);
$this->assertEquals('matches', $array[0]['constraint']['operator']);
}
}