From 969fc8cb59070373081dfea15225c2fc76c6dd14 Mon Sep 17 00:00:00 2001 From: Phil Young Date: Tue, 22 Jun 2021 10:57:05 +0100 Subject: [PATCH] Revert "Move An LoC" This reverts commit ed822d19ff21e477fabfe50f266d848b934f575c. --- 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 fb3a032..484c206 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(