Skip to content

Commit 6aaa156

Browse files
authored
Update sed scripts
1 parent af3f4c1 commit 6aaa156

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

bin/install-wp-tests.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,10 @@ cp "$WP_TESTS_DIR/includes/wp-tests-config-sample.php" "$WP_TESTS_DIR/wp-tests-c
5656

5757
# Configure the testing file with database details and the location of your WordPress core
5858
sed -i "s/youremptytestdbnamehere/$DB_NAME/" "$WP_TESTS_DIR/wp-tests-config.php"
59-
sed -i "s/your_username/$DB_USER/" "$WP_TESTS_DIR/wp-tests-config.php"
60-
sed -i "s/your_password/$DB_PASS/" "$WP_TESTS_DIR/wp-tests-config.php"
59+
sed -i "s/yourusernamehere/$DB_USER/" "$WP_TESTS_DIR/wp-tests-config.php"
60+
sed -i "s/yourpasswordhere/$DB_PASS/" "$WP_TESTS_DIR/wp-tests-config.php"
61+
sed -i "s/localhost/$DB_HOST/" "$WP_TESTS_DIR/wp-tests-config.php"
62+
6163
sed -i "s|define( 'ABSPATH', dirname( __FILE__ ) . '/src/' );|define('ABSPATH', '${WP_CORE_DIR}/');|" "$WP_TESTS_DIR/wp-tests-config.php"
6264

6365
echo "Modified wp-tests-config.php:"

0 commit comments

Comments
 (0)