Testing with PHPUnit–what should be in the file ‘wp-tests-config.php?’
-
Hello. I’m trying to get started with PHP unit testing in WordPress. This page indicates,
>> Lastly, sometimes the bash script fails to build WordPress because of how it uses tmp folders. If it fails, then you can manually install WordPress to a writeable directory, and then manually create
wp-tests-config.php
.What exactly does it mean to ‘manually create
wp-tests-config.php
?’ I know how to create a PHP file–but what should be its contents in this case?The reason I ask is because I think I am encountering that very same issue, with tmp folders in Windows. When I execute this command:
bin/install-wp-tests.sh testphp root 'root' localhost latest
it fails with:grep: /tmp/wp-latest.json: No such file or directory
grep: /tmp/wp-latest.json: No such file or directory
Latest WordPress version could not be foundI am running Local by Flywheel on Windows 10.
Thanks in advance.
- The topic ‘Testing with PHPUnit–what should be in the file ‘wp-tests-config.php?’’ is closed to new replies.