From 9d0df448383f92776ea24552e9b94fefe4a43436 Mon Sep 17 00:00:00 2001 From: Kyle Yee Date: Mon, 16 Dec 2019 18:02:49 +0800 Subject: [PATCH] remove test --- tests/Endpoints/ZonesTest.php | 23 ----------------------- tests/Fixtures/Endpoints/pauseTest.json | 8 -------- 2 files changed, 31 deletions(-) delete mode 100644 tests/Fixtures/Endpoints/pauseTest.json diff --git a/tests/Endpoints/ZonesTest.php b/tests/Endpoints/ZonesTest.php index d44e169..f6b75fc 100644 --- a/tests/Endpoints/ZonesTest.php +++ b/tests/Endpoints/ZonesTest.php @@ -49,29 +49,6 @@ class ZonesTest extends TestCase $this->assertEquals('9a7806061c88ada191ed06f989cc3dac', $zones->getBody()->result->id); } - public function testPauseTest() - { - $response = $this->getPsr7JsonResponseForFixture('Endpoints/pauseTest.json'); - - $mock = $this->getMockBuilder(\Cloudflare\API\Adapter\Adapter::class)->getMock(); - $mock->method('patch')->willReturn($response); - - $mock->expects($this->once()) - ->method('patch') - ->with( - $this->equalTo('zones/c2547eb745079dac9320b638f5e225cf483cc5cfdda41'), - $this->equalTo([ - 'paused' => true, - ]) - ); - - $zones = new \Cloudflare\API\Endpoints\Zones($mock); - $result = $zones->pause('c2547eb745079dac9320b638f5e225cf483cc5cfdda41'); - - $this->assertTrue($result); - $this->assertEquals('023e105f4ecef8ad9ca31a8372d0c353', $zones->getBody()->result->id); - } - public function testActivationTest() { $response = $this->getPsr7JsonResponseForFixture('Endpoints/activationTest.json'); diff --git a/tests/Fixtures/Endpoints/pauseTest.json b/tests/Fixtures/Endpoints/pauseTest.json deleted file mode 100644 index bedd2f5..0000000 --- a/tests/Fixtures/Endpoints/pauseTest.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "success": true, - "errors": [], - "messages": [], - "result": { - "id": "023e105f4ecef8ad9ca31a8372d0c353" - } -}