id summary reporter owner description type status priority milestone component version severity resolution keywords cc focuses 42065 Implement `assertNotWPError` in test suite danielbachhuber johnbillion "`WP_Error` often returns useful information about why a function is failed. However, an assertion like `$this->assertNotInstanceOf( 'WP_Error', $file );` isn't helpful to the test runner because it doesn't communicate the information conveyed by the `WP_Error` object. Currently, someone running the test has to add some `var_dump()` debug (or similar) to read the contents of the returned error object. It would be helpful to have an `assertNotWPError` assertion that communicated the contents of the `WP_Error` object when it actually is one. Inspired by #42064" enhancement closed normal 5.1 Build/Test Tools normal fixed has-patch