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

WordPress Trac noreply at wordpress.org
Tue May 26 02:46:51 UTC 2020


#50251: Report if populate_network() fails during test installation
-------------------------------+-----------------------------
 Reporter:  TimothyBlynJacobs  |      Owner:  (none)
     Type:  enhancement        |     Status:  new
 Priority:  normal             |  Milestone:  Awaiting Review
Component:  Build/Test Tools   |    Version:
 Severity:  normal             |   Keywords:
  Focuses:                     |
-------------------------------+-----------------------------
 While looking into a [https://github.com/WordPress/gutenberg/pull/22613
 Gutenberg phpunit issue] we discovered that the root cause of tests
 failing with `<h1>Error establishing a database connection</h1>` was that
 `populate_network()` was failing because of a missing `WP_TESTS_EMAIL`.

 I think it'd be helpful if we reported to the user if `populate_network()`
 returned a `WP_Error` instance

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


More information about the wp-trac mailing list