Skip to content

Commit 1c3ab56

Browse files
committed
Fix for DB dump.
1 parent d65c247 commit 1c3ab56

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

plugins/wpgraphql-logging/bin/install-test-env.sh

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,6 @@ configure_wordpress() {
117117
SITE_TITLE=${WORDPRESS_SITE_TITLE:-"WPGraphQL Logging Tests"}
118118

119119
wp core install --title="$SITE_TITLE" --admin_user="$WORDPRESS_ADMIN_USER" --admin_password="$WORDPRESS_ADMIN_PASSWORD" --admin_email="$WORDPRESS_ADMIN_EMAIL" --skip-email --url="$WORDPRESS_URL" --allow-root
120-
121-
# Fix for WP 6.8+ SSL issue in tests
122-
echo -e "$(status_message "Adding mu-plugin to disable local SSL verification for tests...")"
123-
local MU_PLUGINS_DIR="$WORDPRESS_ROOT_DIR/wp-content/mu-plugins"
124-
mkdir -p "$MU_PLUGINS_DIR"
125-
echo "<?php add_filter( 'https_local_ssl_verify', '__return_false' );" > "$MU_PLUGINS_DIR/disable-local-ssl-verify.php"
126-
127120
echo -e "$(status_message "Running WordPress version: $(wp core version --allow-root) at $(wp option get home --allow-root)")"
128121
}
129122

@@ -202,15 +195,6 @@ post_setup() {
202195
wp config set WP_AUTO_UPDATE_CORE false --raw --type=constant --quiet --allow-root
203196
wp config set AUTOMATIC_UPDATER_DISABLED true --raw --type=constant --quiet --allow-root
204197

205-
# Export the db for codeception to use
206-
SQLDUMP="$WORDPRESS_ROOT_DIR/wp-content/plugins/$PLUGIN_SLUG/tests/_data/dump.sql"
207-
mkdir -p "$(dirname "$SQLDUMP")"
208-
if [ ! -f "$SQLDUMP" ]; then
209-
echo -e "$(status_message "Exporting test database dump...")"
210-
211-
wp db export "$SQLDUMP" --allow-root
212-
fi
213-
214198
echo -e "$(status_message "Installed plugins")"
215199
wp plugin list --allow-root
216200
}

0 commit comments

Comments
 (0)