diff --git a/tests/phpunit/tests/db.php b/tests/phpunit/tests/db.php index 83770d5fde..1d771174a8 100644 --- a/tests/phpunit/tests/db.php +++ b/tests/phpunit/tests/db.php @@ -98,7 +98,7 @@ class Tests_DB extends WP_UnitTestCase { $this->assertNotEmpty( $dbh ); $this->assertTrue( isset( $wpdb->dbh ) ); // Test __isset() unset( $wpdb->dbh ); - $this->assertNull( $wpdb->dbh ); + $this->assertTrue( empty( $wpdb->dbh ) ); $wpdb->dbh = $dbh; $this->assertNotEmpty( $wpdb->dbh ); } @@ -109,12 +109,12 @@ class Tests_DB extends WP_UnitTestCase { function test_wpdb_nonexistent_properties() { global $wpdb; - $this->assertNull( $wpdb->nonexistent_property ); + $this->assertTrue( empty( $wpdb->nonexistent_property ) ); $wpdb->nonexistent_property = true; $this->assertTrue( $wpdb->nonexistent_property ); $this->assertTrue( isset( $wpdb->nonexistent_property ) ); unset( $wpdb->nonexistent_property ); - $this->assertNull( $wpdb->nonexistent_property ); + $this->assertTrue( empty( $wpdb->nonexistent_property ) ); } /**