Fix assigment order issues
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user