mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
Fix phpunit
This commit is contained in:
parent
8718270efb
commit
d524216034
1 changed files with 5 additions and 1 deletions
|
@ -3,6 +3,7 @@
|
||||||
namespace WooCommerce\PayPalCommerce\WcGateway\Assets;
|
namespace WooCommerce\PayPalCommerce\WcGateway\Assets;
|
||||||
|
|
||||||
use WooCommerce\PayPalCommerce\ApiClient\Authentication\Bearer;
|
use WooCommerce\PayPalCommerce\ApiClient\Authentication\Bearer;
|
||||||
|
use WooCommerce\PayPalCommerce\ApiClient\Endpoint\BillingAgreementsEndpoint;
|
||||||
use WooCommerce\PayPalCommerce\Onboarding\Environment;
|
use WooCommerce\PayPalCommerce\Onboarding\Environment;
|
||||||
use WooCommerce\PayPalCommerce\WcSubscriptions\Helper\SubscriptionHelper;
|
use WooCommerce\PayPalCommerce\WcSubscriptions\Helper\SubscriptionHelper;
|
||||||
use WooCommerce\PayPalCommerce\TestCase;
|
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';
|
$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';
|
$modulePath = '/var/www/html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-wc-gateway';
|
||||||
$subscriptionsHelper = Mockery::mock(SubscriptionHelper::class);
|
$subscriptionsHelper = Mockery::mock(SubscriptionHelper::class);
|
||||||
|
$billingAgreementEndpoint = Mockery::mock(BillingAgreementsEndpoint::class);
|
||||||
|
|
||||||
|
|
||||||
$testee = new SettingsPageAssets(
|
$testee = new SettingsPageAssets(
|
||||||
$moduleUrl,
|
$moduleUrl,
|
||||||
|
@ -29,7 +32,8 @@ class SettingsPagesAssetsTest extends TestCase
|
||||||
array(),
|
array(),
|
||||||
array(),
|
array(),
|
||||||
true,
|
true,
|
||||||
false
|
false,
|
||||||
|
$billingAgreementEndpoint
|
||||||
);
|
);
|
||||||
|
|
||||||
when('is_admin')
|
when('is_admin')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue