From dcd9bfffdd97b34433efa6b2db56857d94e7f61a Mon Sep 17 00:00:00 2001 From: Alex P Date: Fri, 27 Aug 2021 20:41:52 +0300 Subject: [PATCH] Fix test warning --- tests/PHPUnit/Button/Endpoint/CreateOrderEndpointTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/PHPUnit/Button/Endpoint/CreateOrderEndpointTest.php b/tests/PHPUnit/Button/Endpoint/CreateOrderEndpointTest.php index 2f4efbe8e..fa6f2f9e9 100644 --- a/tests/PHPUnit/Button/Endpoint/CreateOrderEndpointTest.php +++ b/tests/PHPUnit/Button/Endpoint/CreateOrderEndpointTest.php @@ -32,7 +32,7 @@ class CreateOrderEndpointTest extends TestCase { list($payer_factory, $testee) = $this->mockTestee(); - $method = $this->testPrivateMethod(CreateOrderEndpoint::class, 'payer'); + $method = $this->makePrivateMethod(CreateOrderEndpoint::class, 'payer'); $dataString = wp_json_encode($expectedResult['payer']); $dataObj = json_decode(wp_json_encode($expectedResult['payer'])); @@ -173,11 +173,11 @@ class CreateOrderEndpointTest extends TestCase * @return \ReflectionMethod * @throws \ReflectionException */ - protected function testPrivateMethod($class, $method) + protected function makePrivateMethod($class, $method) { $reflector = new ReflectionClass($class); $method = $reflector->getMethod($method); $method->setAccessible(true); return $method; } -} \ No newline at end of file +}