diff --git a/tests/PHPUnit/WcGateway/Assets/SettingsPagesAssetsTest.php b/tests/PHPUnit/WcGateway/Assets/SettingsPagesAssetsTest.php index 1cfcab8a9..5569c4158 100644 --- a/tests/PHPUnit/WcGateway/Assets/SettingsPagesAssetsTest.php +++ b/tests/PHPUnit/WcGateway/Assets/SettingsPagesAssetsTest.php @@ -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')