Set WC specific values for tests config
This commit is contained in:
parent
31d863fe73
commit
7bd27712c5
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue