Closed moon0326 closed 2 years ago
Fixes #8487
This PR adds defined('WP_CLI'); check to allow CLI environments to run the WCA install routines.
defined('WP_CLI');
plugins/woocommerce/packages/woocommerce-admin/src-internal/Install.php
plugins/woocommerce
BASE_URL=http://localhost:8084/ USER_KEY=admin USER_SECRET=password pnpm wc-api-tests test api
The test should pass.
no changelog
Fixes #8487
This PR adds
defined('WP_CLI');
check to allow CLI environments to run the WCA install routines.Detailed test instructions:
plugins/woocommerce/packages/woocommerce-admin/src-internal/Install.php
and apply the change in this PR.plugins/woocommerce
and run the following command.The test should pass.
no changelog