From dfbc5a10d220f3a9fb1fa5e182307c96c1d1c7c7 Mon Sep 17 00:00:00 2001 From: Phil Young Date: Tue, 22 Jun 2021 11:01:09 +0100 Subject: [PATCH] Revert "Revert "Move An LoC"" This reverts commit 969fc8cb59070373081dfea15225c2fc76c6dd14. --- tests/Endpoints/CustomHostnamesTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Endpoints/CustomHostnamesTest.php b/tests/Endpoints/CustomHostnamesTest.php index 484c206..fb3a032 100644 --- a/tests/Endpoints/CustomHostnamesTest.php +++ b/tests/Endpoints/CustomHostnamesTest.php @@ -14,11 +14,11 @@ class CustomHostnamesTest extends TestCase { $response = $this->getPsr7JsonResponseForFixture('Endpoints/createCustomHostname.json'); + $customSsl = $this->getCustomSsl(); + $mock = $this->getMockBuilder(\Cloudflare\API\Adapter\Adapter::class)->getMock(); $mock->method('post')->willReturn($response); - $customSsl = $this->getCustomSsl(); - $mock->expects($this->once()) ->method('post') ->with(