From ee8e6628620def1770acfc1949932dfa932e1a17 Mon Sep 17 00:00:00 2001 From: Ivan Chaplygin Date: Tue, 4 Feb 2025 17:31:44 +0300 Subject: [PATCH] Update tests --- tests/test-wc-retailcrm-uploader.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/test-wc-retailcrm-uploader.php b/tests/test-wc-retailcrm-uploader.php index 901b37f..ba7c23b 100644 --- a/tests/test-wc-retailcrm-uploader.php +++ b/tests/test-wc-retailcrm-uploader.php @@ -95,7 +95,7 @@ class WC_Retailcrm_Uploader_Test extends WC_Retailcrm_Test_Case_Helper /** * @param $retailcrm - * @dataProvider dataProviderApiClient + * @dataProvider dataProviderApiClientForUpload */ public function test_upload_selected_orders() { @@ -140,7 +140,11 @@ class WC_Retailcrm_Uploader_Test extends WC_Retailcrm_Test_Case_Helper $this->setUp(); $apiMock = (clone $this->apiMock); - $apiMock->expects($this->once())->method('ordersUpload'); + $apiMock + ->expects($this->once()) + ->method('ordersUpload') + ->willReturn(new WC_Retailcrm_Response(200, '')); + ; return array( array(