If you are missing WP_TESTS_EMAIL, populate_network will fail and it can be hard to debug. As populate_network can return a wp_error object, we can detect that and display the error to a user. See: https://github.com/WordPress/gutenberg/pull/22613 Fixes: #50251 Props: TimothyBlynJacobs git-svn-id: https://develop.svn.wordpress.org/trunk@47904 602fd350-edb4-49c9-b593-d223f7449a82
dirname( __FILE__ )
__DIR__
WP_UnitTestCase_Base
_wp_die_handler_exit()
_wp_die_handler_txt()
tests/phpunit/includes/spy-rest-server.php