mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-01 07:02:48 +08:00
Make e2e php tests more reliable locally
they were depending on the current shop country and shipping settings
This commit is contained in:
parent
33bfc32427
commit
c08c028471
1 changed files with 5 additions and 0 deletions
|
@ -45,6 +45,10 @@ class PurchaseUnitTest extends TestCase
|
|||
|
||||
$this->puFactory = $this->container->get( 'api.factory.purchase-unit' );
|
||||
assert($this->puFactory instanceof PurchaseUnitFactory);
|
||||
|
||||
add_filter('woocommerce_get_base_location', function () {
|
||||
return 'AQ';
|
||||
});
|
||||
}
|
||||
|
||||
public function tearDown(): void
|
||||
|
@ -195,6 +199,7 @@ class PurchaseUnitTest extends TestCase
|
|||
$product->set_regular_price((string) $data['price']);
|
||||
$product->set_tax_status('taxable');
|
||||
$product->set_tax_class('');
|
||||
$product->set_virtual(true);
|
||||
|
||||
$product->save();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue