Update tests
This commit is contained in:
parent
ee8e662862
commit
417a0c0a40
1 changed files with 2 additions and 23 deletions
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Add table
Reference in a new issue