diff --git a/modules/ppcp-wc-gateway/services.php b/modules/ppcp-wc-gateway/services.php index cb6d3b604..29996a486 100644 --- a/modules/ppcp-wc-gateway/services.php +++ b/modules/ppcp-wc-gateway/services.php @@ -729,7 +729,8 @@ return array( 'title' => __( 'Logging', 'woocommerce-paypal-payments' ), 'type' => 'checkbox', 'desc_tip' => true, - 'label' => __( 'Enable logging', 'woocommerce-paypal-payments' ), + 'label' => __( 'Enable logging. ', 'woocommerce-paypal-payments' ) . + ' ' . __( 'View logs', 'woocommerce-paypal-payments' ) . '', 'description' => __( 'Enable logging of unexpected behavior. This can also log private data and should only be enabled in a development or stage environment.', 'woocommerce-paypal-payments' ), 'default' => false, 'screens' => array( diff --git a/tests/PHPUnit/ModularTestCase.php b/tests/PHPUnit/ModularTestCase.php index be813085f..9756108ef 100644 --- a/tests/PHPUnit/ModularTestCase.php +++ b/tests/PHPUnit/ModularTestCase.php @@ -19,6 +19,7 @@ class ModularTestCase extends TestCase parent::setUp(); when('get_option')->justReturn(null); + when('admin_url')->returnArg(); when('plugins_url')->returnArg(); when('plugin_dir_path')->alias(function ($file) { return trailingslashit(dirname($file)); }); when('get_current_blog_id')->justReturn(42);