All GitHub Actions tests seem to be failing now, so this fixes that. This PR updates the version of PHPUnit we use, and also accounts for an issue that occurs due to functions required in tests loading the merge-config.php file. Since merge-config.php now checks if a config.php file exists, it doesn't allow tests to proceed on a clean testing environment. As far as I can tell, the best way to get around this is to just pass the config object to functions that need config instead of loading it right in the function.
All GitHub Actions tests seem to be failing now, so this fixes that. This PR updates the version of PHPUnit we use, and also accounts for an issue that occurs due to functions required in tests loading the
merge-config.php
file. Sincemerge-config.php
now checks if aconfig.php
file exists, it doesn't allow tests to proceed on a clean testing environment. As far as I can tell, the best way to get around this is to just pass the config object to functions that need config instead of loading it right in the function.Let me know what you think.