Merge branch 'trunk' into PCP-1745-real-time-account-updater-rtau

This commit is contained in:
Emili Castells Guasch 2024-02-16 16:02:36 +01:00
commit 821e425944
39 changed files with 3845 additions and 246 deletions

View file

@ -3,6 +3,7 @@
namespace WooCommerce\PayPalCommerce\WcGateway\Assets;
use WooCommerce\PayPalCommerce\ApiClient\Authentication\Bearer;
use WooCommerce\PayPalCommerce\ApiClient\Endpoint\BillingAgreementsEndpoint;
use WooCommerce\PayPalCommerce\Onboarding\Environment;
use WooCommerce\PayPalCommerce\WcSubscriptions\Helper\SubscriptionHelper;
use WooCommerce\PayPalCommerce\TestCase;
@ -16,6 +17,8 @@ class SettingsPagesAssetsTest extends TestCase
$moduleUrl = 'http://example.com/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-wc-gateway';
$modulePath = '/var/www/html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-wc-gateway';
$subscriptionsHelper = Mockery::mock(SubscriptionHelper::class);
$billingAgreementEndpoint = Mockery::mock(BillingAgreementsEndpoint::class);
$testee = new SettingsPageAssets(
$moduleUrl,
@ -29,7 +32,8 @@ class SettingsPagesAssetsTest extends TestCase
array(),
array(),
true,
false
false,
$billingAgreementEndpoint
);
when('is_admin')