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

WordPress Trac noreply at wordpress.org
Wed Jun 3 21:51:51 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:
--------------------------------------+-----------------------

Comment (by TimothyBlynJacobs):

 > that not all of the constants (settings) there are replaced when that
 file is not used.

 Our issue was that not all of the constants were loaded, and tracking this
 down was incredibly difficult because the eventual error message that gets
 generated is seemingly unrelated.

 > Perhaps it would be better to validate that all needed constants are
 present while doing the bootstrap instead of attempting to run and
 failing.

 I think checking that all the constants are defined as expected would be
 great. I think the `populate_network` check is still valuable as well
 because the checks there are more intricate than just checking for a non-
 empty value.

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


More information about the wp-trac mailing list