File tree Expand file tree Collapse file tree 1 file changed +4
-13
lines changed
Expand file tree Collapse file tree 1 file changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -44,10 +44,10 @@ install_db() {
4444 # create database
4545 echo -e " $( status_message " Creating the database (if it does not exist)..." ) "
4646
47- RESULT=$( mysql -u $WORDPRESS_DB_USER --password=" $WORDPRESS_DB_PASSWORD " --skip-column-names -e " SHOW DATABASES LIKE '$WORDPRESS_DB_NAME '" $EXTRA )
48- if [ " $RESULT " != $WORDPRESS_DB_NAME ]; then
49- mysqladmin create $WORDPRESS_DB_NAME --user=" $WORDPRESS_DB_USER " --password=" $WORDPRESS_DB_PASSWORD " $EXTRA
50- fi
47+ RESULT=$( mysql --no-defaults --ssl=false -u $WORDPRESS_DB_USER --password=" $WORDPRESS_DB_PASSWORD " --skip-column-names -e " SHOW DATABASES LIKE '$WORDPRESS_DB_NAME '" $EXTRA )
48+ if [ " $RESULT " != $WORDPRESS_DB_NAME ]; then
49+ mysqladmin --no-defaults --ssl=false create $WORDPRESS_DB_NAME --user=" $WORDPRESS_DB_USER " --password=" $WORDPRESS_DB_PASSWORD " $EXTRA
50+ fi
5151}
5252
5353download () {
@@ -196,15 +196,6 @@ post_setup() {
196196 wp config set WP_AUTO_UPDATE_CORE false --raw --type=constant --quiet --allow-root
197197 wp config set AUTOMATIC_UPDATER_DISABLED true --raw --type=constant --quiet --allow-root
198198
199- # Export the db for codeception to use
200- SQLDUMP=" $WORDPRESS_ROOT_DIR /wp-content/plugins/$PLUGIN_SLUG /tests/_data/dump.sql"
201- mkdir -p " $( dirname " $SQLDUMP " ) "
202- if [ ! -f " $SQLDUMP " ]; then
203- echo -e " $( status_message " Exporting test database dump..." ) "
204-
205- wp db export " $SQLDUMP " --allow-root
206- fi
207-
208199 echo -e " $( status_message " Installed plugins" ) "
209200 wp plugin list --allow-root
210201}
You can’t perform that action at this time.
0 commit comments