Merge pull request #45 from darinrandal/master
Fix name of jumpstart zone add option to jump_start
This commit is contained in:
@@ -23,15 +23,15 @@ class Zones implements API
|
|||||||
* @SuppressWarnings(PHPMD.BooleanArgumentFlag)
|
* @SuppressWarnings(PHPMD.BooleanArgumentFlag)
|
||||||
*
|
*
|
||||||
* @param string $name
|
* @param string $name
|
||||||
* @param bool $jumpstart
|
* @param bool $jumpStart
|
||||||
* @param string $organizationID
|
* @param string $organizationID
|
||||||
* @return \stdClass
|
* @return \stdClass
|
||||||
*/
|
*/
|
||||||
public function addZone(string $name, bool $jumpstart = false, string $organizationID = ''): \stdClass
|
public function addZone(string $name, bool $jumpStart = false, string $organizationID = ''): \stdClass
|
||||||
{
|
{
|
||||||
$options = [
|
$options = [
|
||||||
'name' => $name,
|
'name' => $name,
|
||||||
'jumpstart' => $jumpstart
|
'jump_start' => $jumpStart
|
||||||
];
|
];
|
||||||
|
|
||||||
if (!empty($organizationID)) {
|
if (!empty($organizationID)) {
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ class ZonesTest extends TestCase
|
|||||||
->with(
|
->with(
|
||||||
$this->equalTo('zones'),
|
$this->equalTo('zones'),
|
||||||
$this->equalTo([]),
|
$this->equalTo([]),
|
||||||
$this->equalTo(['name' => 'example.com', 'jumpstart' => false])
|
$this->equalTo(['name' => 'example.com', 'jump_start' => false])
|
||||||
);
|
);
|
||||||
|
|
||||||
$zones = new \Cloudflare\API\Endpoints\Zones($mock);
|
$zones = new \Cloudflare\API\Endpoints\Zones($mock);
|
||||||
@@ -41,7 +41,7 @@ class ZonesTest extends TestCase
|
|||||||
$this->equalTo([]),
|
$this->equalTo([]),
|
||||||
$this->equalTo([
|
$this->equalTo([
|
||||||
'name' => 'example.com',
|
'name' => 'example.com',
|
||||||
'jumpstart' => true,
|
'jump_start' => true,
|
||||||
'organization' => (object)['id' => '01a7362d577a6c3019a474fd6f485823']
|
'organization' => (object)['id' => '01a7362d577a6c3019a474fd6f485823']
|
||||||
])
|
])
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user