fix: disable WP_RUN_CORE_TESTS #509

This commit is contained in:
vnmedeiros 2021-03-17 11:37:26 -03:00
parent f928729d6d
commit 7aeeb56805
1 changed files with 1 additions and 0 deletions

View File

@ -91,6 +91,7 @@ install_test_suite() {
sed $ioption "s/yourusernamehere/$DB_USER/" "$WP_TESTS_DIR"/wp-tests-config.php
sed $ioption "s/yourpasswordhere/$DB_PASS/" "$WP_TESTS_DIR"/wp-tests-config.php
sed $ioption "s|localhost|${DB_HOST}|" "$WP_TESTS_DIR"/wp-tests-config.php
sed $ioption "$ a if ( ! defined( 'WP_RUN_CORE_TESTS' ) ) define('WP_RUN_CORE_TESTS', false);" "$WP_TESTS_DIR"/wp-tests-config.php
fi
}