Fix assigment order issues

This commit is contained in:
Almira Krdzic
2018-12-02 22:18:09 +01:00
parent 3dbdb657c9
commit e87d1521dd
23 changed files with 873 additions and 256 deletions

View File

@@ -6,17 +6,17 @@ class Wiaas_Package_CL_Pricing_Test extends Wiaas_Unit_Test_Case {
function setUp() {
parent::setUp();
$this->shop_owner_id = wp_insert_term(
'Shop owner organization',
Wiaas_User_Organization::TAXONOMY_NAME)['term_id'];
$this->shop_owner_id = $this->factory->organization->create_new_organization(
array( 'name' => 'Shop owner organization' )
);
$this->customer_id = wp_insert_term(
'Customer Organization',
Wiaas_User_Organization::TAXONOMY_NAME)['term_id'];
$this->customer_id = $this->factory->organization->create_new_organization(
array( 'name' => 'Customer Organization' )
);
$package = $this->create_new_package();
$this->add_products_to_package($package, array( $this->create_new_product()));
$package = $this->factory->product->create_product_bundle(array(
'products' => array( $this->factory->product->create_simple_product() )
));
$this->package_id = $package->get_id();