Do not send buyer-country for previews in live mode to avoid error

This commit is contained in:
Alex P 2023-02-14 11:25:23 +02:00
parent ec04c02b3d
commit 3439f67ec9
No known key found for this signature in database
GPG key ID: 54487A734A204D71
4 changed files with 20 additions and 2 deletions

View file

@ -3,6 +3,7 @@
namespace WooCommerce\PayPalCommerce\WcGateway\Assets;
use WooCommerce\PayPalCommerce\ApiClient\Authentication\Bearer;
use WooCommerce\PayPalCommerce\Onboarding\Environment;
use WooCommerce\PayPalCommerce\Subscription\Helper\SubscriptionHelper;
use WooCommerce\PayPalCommerce\TestCase;
use function Brain\Monkey\Functions\when;
@ -23,6 +24,7 @@ class SettingsPagesAssetsTest extends TestCase
'123',
'EUR',
'DE',
Mockery::mock(Environment::class),
true,
array(),
array()