Set WC specific values for tests config

This commit is contained in:
Max Rice 2014-09-06 00:49:02 -04:00
parent 31d863fe73
commit 7bd27712c5
1 changed files with 4 additions and 1 deletions

5
tests/install-wp-tests.sh Normal file → Executable file
View File

@ -16,7 +16,6 @@ WP_VERSION=${5-latest}
WP_TESTS_DIR="${PWD}/tmp/wordpress-tests-lib"
WP_CORE_DIR="${PWD}/tmp/wordpress/"
set -ex
install_wp() {
@ -55,6 +54,10 @@ install_test_suite() {
sed $ioption "s/yourusernamehere/$DB_USER/" wp-tests-config.php
sed $ioption "s/yourpasswordhere/$DB_PASS/" wp-tests-config.php
sed $ioption "s|localhost|${DB_HOST}|" wp-tests-config.php
sed $ioption "s/wptests_/wctests_/" wp-tests-config.php
sed $ioption "s/example.org/woocommerce.com/" wp-tests-config.php
sed $ioption "s/admin@example.org/tests@woocommerce.com/" wp-tests-config.php
sed $ioption "s/Test Blog/WooCommerce Unit Tests/" wp-tests-config.php
}
install_db() {