Make WordPress Core


Ignore:
Timestamp:
02/05/2016 01:05:47 AM (9 years ago)
Author:
pento
Message:

Tests: Use the new wpdb::close() method for closing the DB connection.

Props markoheijnen.

Fixes #34903.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/db.php

    r36433 r36478  
    6161        $this->assertGreaterThan( 0, $var );
    6262
    63         if ( $wpdb->use_mysqli ) {
    64             mysqli_close( $wpdb->dbh );
    65         } else {
    66             mysql_close( $wpdb->dbh );
    67         }
    68         unset( $wpdb->dbh );
     63        $wpdb->close();
    6964
    7065        $var = $wpdb->get_var( "SELECT ID FROM $wpdb->users LIMIT 1" );
Note: See TracChangeset for help on using the changeset viewer.