Remove Gutenberg requirement from phpunit tests (https://github.com/woocommerce/woocommerce-blocks/pull/414)
* Remove Gutenberg requirement from phpunit tests * Remove gutenberg from the install script
This commit is contained in:
parent
55669d294a
commit
daa106ebbe
|
@ -146,9 +146,6 @@ install_deps() {
|
|||
php wp-cli.phar core config --dbname=$DB_NAME --dbuser=$DB_USER --dbpass=$DB_PASS --dbhost=$DB_HOST --dbprefix=wptests_
|
||||
php wp-cli.phar core install --url="$WP_SITE_URL" --title="Example" --admin_user=admin --admin_password=password --admin_email=info@example.com --path=$WP_CORE_DIR --skip-email
|
||||
|
||||
# Install Gutenberg
|
||||
php wp-cli.phar plugin install gutenberg --activate
|
||||
|
||||
# Install WooCommerce
|
||||
cd "wp-content/plugins/"
|
||||
# As zip file does not include tests, we have to get it from git repo.
|
||||
|
|
|
@ -89,9 +89,6 @@ function wgpb_test_includes() {
|
|||
* Manually load the plugin being tested.
|
||||
*/
|
||||
function _manually_load_plugin() {
|
||||
echo esc_html( 'Loading Gutenberg' . PHP_EOL );
|
||||
require dirname( dirname( dirname( __FILE__ ) ) ) . '/gutenberg/gutenberg.php';
|
||||
|
||||
echo esc_html( 'Loading WooCommerce' . PHP_EOL );
|
||||
define( 'WC_TAX_ROUNDING_MODE', 'auto' );
|
||||
define( 'WC_USE_TRANSACTIONS', false );
|
||||
|
|
Loading…
Reference in New Issue