1
0
Fork 0
mirror of synced 2025-04-06 07:13:33 +03:00

fix for address builder test

This commit is contained in:
Pavel 2020-04-09 11:17:44 +03:00
parent cee0fce1aa
commit 1e3a7cebb4

View file

@ -26,8 +26,11 @@ class WC_Retailcrm_Order_Address_Test extends WC_Retailcrm_Test_Case_Helper
public function test_build()
{
$order_address = new WC_Retailcrm_Order_Address;
$data = $order_address->build($this->order)->get_data();
$order_address = new WC_Retailcrm_Order_Address();
$data = $order_address
->setWCAddressType(WC_Retailcrm_Abstracts_Address::ADDRESS_TYPE_BILLING)
->build($this->order)
->get_data();
$this->assertArrayHasKey('index', $data);
$this->assertArrayHasKey('city', $data);