From 417a0c0a407f98fae267e0643c5ebab6ab6da773 Mon Sep 17 00:00:00 2001 From: Ivan Chaplygin Date: Wed, 5 Feb 2025 10:20:48 +0300 Subject: [PATCH] Update tests --- tests/test-wc-retailcrm-uploader.php | 25 ++----------------------- 1 file changed, 2 insertions(+), 23 deletions(-) diff --git a/tests/test-wc-retailcrm-uploader.php b/tests/test-wc-retailcrm-uploader.php index ba7c23b..bc0fd95 100644 --- a/tests/test-wc-retailcrm-uploader.php +++ b/tests/test-wc-retailcrm-uploader.php @@ -83,7 +83,7 @@ class WC_Retailcrm_Uploader_Test extends WC_Retailcrm_Test_Case_Helper /** * @param $retailcrm - * @dataProvider dataProviderApiClientForUpload + * @dataProvider dataProviderApiClient */ public function test_order_upload($retailcrm) { @@ -95,7 +95,7 @@ class WC_Retailcrm_Uploader_Test extends WC_Retailcrm_Test_Case_Helper /** * @param $retailcrm - * @dataProvider dataProviderApiClientForUpload + * @dataProvider dataProviderApiClient */ public function test_upload_selected_orders() { @@ -135,27 +135,6 @@ class WC_Retailcrm_Uploader_Test extends WC_Retailcrm_Test_Case_Helper ); } - public function dataProviderApiClientForUpload() - { - $this->setUp(); - - $apiMock = (clone $this->apiMock); - $apiMock - ->expects($this->once()) - ->method('ordersUpload') - ->willReturn(new WC_Retailcrm_Response(200, '')); - ; - - return array( - array( - 'retailcrm' => $apiMock - ), - array( - 'retailcrm' => false - ) - ); - } - /** * @param $retailcrm *