Updated DNSTest style.
This commit is contained in:
@@ -93,13 +93,13 @@ class DNSTest extends TestCase
|
|||||||
$mock = $this->getMockBuilder(\Cloudflare\API\Adapter\Adapter::class)->getMock();
|
$mock = $this->getMockBuilder(\Cloudflare\API\Adapter\Adapter::class)->getMock();
|
||||||
$mock->method('put')->willReturn($response);
|
$mock->method('put')->willReturn($response);
|
||||||
|
|
||||||
$details = array(
|
$details = [
|
||||||
'type' => 'A',
|
'type' => 'A',
|
||||||
'name' => "example.com",
|
'name' => "example.com",
|
||||||
'content' => "1.2.3.4",
|
'content' => "1.2.3.4",
|
||||||
'ttl' => 120,
|
'ttl' => 120,
|
||||||
'proxied' => false,
|
'proxied' => false,
|
||||||
);
|
];
|
||||||
|
|
||||||
$mock->expects($this->once())
|
$mock->expects($this->once())
|
||||||
->method('put')
|
->method('put')
|
||||||
|
|||||||
Reference in New Issue
Block a user