Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add WP_CLI\Utils\get_home_dir() helper method #4184
Thanks @Ippey - could you have wp-cli use the new function - see
Also to avoid test bleed it's nice if tests leave things as they find them so could you save/restore the environment in the test (see eg https://github.com/wp-cli/php-cli-tools/blob/master/tests/test-shell.php#L15). Also the test should also use the WP coding style. Ta!