Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Remove Gutenberg requirement from phpunit tests (#414)
Browse files Browse the repository at this point in the history
* Remove Gutenberg requirement from phpunit tests

* Remove gutenberg from the install script
  • Loading branch information
ryelle committed Feb 8, 2019
1 parent f74980e commit f611788
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions tests/bin/install-wp-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 0 additions & 3 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit f611788

Please sign in to comment.