[wp-trac] [WordPress Trac] #50251: Report if populate_network() fails during test installation

WordPress Trac noreply at wordpress.org
Wed Jun 3 21:47:31 UTC 2020


#50251: Report if populate_network() fails during test installation
--------------------------------------+-----------------------
 Reporter:  TimothyBlynJacobs         |       Owner:  jorbin
     Type:  enhancement               |      Status:  reopened
 Priority:  normal                    |   Milestone:  5.5
Component:  Build/Test Tools          |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+-----------------------
Changes (by azaozz):

 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 [47904] would prevent the tests from running when `WP_TESTS_DOMAIN` or
 `WP_TESTS_EMAIL` are not defined, however this points to bigger/other
 problems. `WP_TESTS_DOMAIN` and `WP_TESTS_EMAIL` are defined in
 https://core.trac.wordpress.org/browser/tags/5.4.1/wp-tests-config-
 sample.php#L68 and should always be present.

 As far as I see the actual problem here is that `wp-tests-config.php` is
 not present (loaded), or that not all of the constants (settings) there
 are replaced when that file is not used. Perhaps it would be better to
 validate that all needed constants are present while doing the bootstrap
 instead of attempting to run and failing.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/50251#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list