Changeset 39626 for trunk/tests/phpunit/tests/db.php
- Timestamp:
- 12/21/2016 04:58:47 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/db.php
r39275 r39626 21 21 22 22 public static function setUpBeforeClass() { 23 parent::setUpBeforeClass(); 23 24 self::$_wpdb = new wpdb_exposed_methods_for_testing(); 24 25 } … … 64 65 65 66 $var = $wpdb->get_var( "SELECT ID FROM $wpdb->users LIMIT 1" ); 67 68 // Ensure all database handles have been properly reconnected after this test. 69 $wpdb->db_connect(); 70 self::$_wpdb->db_connect(); 71 66 72 $this->assertGreaterThan( 0, $var ); 67 73 }
Note: See TracChangeset
for help on using the changeset viewer.