Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #39327, comment 7


Ignore:
Timestamp:
12/27/2016 07:14:17 PM (8 years ago)
Author:
mnelson4
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #39327, comment 7

    initial v1  
    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
     1This 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
     3Reverting the first commit on this ticket fixes our plugin's unit tests.
     4
     5Also, adding
     6
     7        $wpdb->suppress_errors = false;
     8        $wpdb->show_errors = true;
     9        $wpdb->db_connect();
     10        ini_set('display_errors', 1 );
     11
     12to the start of our test classes' `setUp()` method fixese it too. Not sure why those changes resolve the issue yet