1 | | This is causing some of our plugin's phpunit tests to fail. We were already setting `backupGlobals="false"` in our `phpunit.xml` file. Haven't nailed down the issue yet though, so still investigating. I'll provide more details (like why it broke our tests and what we've done about it) once I have a clue what's the relevant information |
| 1 | This is causing some of our plugin's phpunit tests to fail. We were already setting `backupGlobals="false"` in our `phpunit.xml` file. Haven't nailed down the issue yet though, so still investigating. |
| 2 | |
| 3 | Reverting the first commit on this ticket fixes our plugin's unit tests. |
| 4 | |
| 5 | Also, adding |
| 6 | |
| 7 | $wpdb->suppress_errors = false; |
| 8 | $wpdb->show_errors = true; |
| 9 | $wpdb->db_connect(); |
| 10 | ini_set('display_errors', 1 ); |
| 11 | |
| 12 | to the start of our test classes' `setUp()` method fixese it too. Not sure why those changes resolve the issue yet |