diff --git a/src/Endpoints/Zones.php b/src/Endpoints/Zones.php index c58f529..ec85f28 100644 --- a/src/Endpoints/Zones.php +++ b/src/Endpoints/Zones.php @@ -23,15 +23,15 @@ class Zones implements API * @SuppressWarnings(PHPMD.BooleanArgumentFlag) * * @param string $name - * @param bool $jumpstart + * @param bool $jumpStart * @param string $organizationID * @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 = [ 'name' => $name, - 'jumpstart' => $jumpstart + 'jump_start' => $jumpStart ]; if (!empty($organizationID)) { diff --git a/tests/Endpoints/ZonesTest.php b/tests/Endpoints/ZonesTest.php index e0bb396..aceef12 100644 --- a/tests/Endpoints/ZonesTest.php +++ b/tests/Endpoints/ZonesTest.php @@ -20,7 +20,7 @@ class ZonesTest extends TestCase ->with( $this->equalTo('zones'), $this->equalTo([]), - $this->equalTo(['name' => 'example.com', 'jumpstart' => false]) + $this->equalTo(['name' => 'example.com', 'jump_start' => false]) ); $zones = new \Cloudflare\API\Endpoints\Zones($mock); @@ -41,7 +41,7 @@ class ZonesTest extends TestCase $this->equalTo([]), $this->equalTo([ 'name' => 'example.com', - 'jumpstart' => true, + 'jump_start' => true, 'organization' => (object)['id' => '01a7362d577a6c3019a474fd6f485823'] ]) );