Changeset 971 in tests for trunk/tests/db.php
- Timestamp:
- 08/14/2012 08:31:57 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/db.php
r909 r971 79 79 setlocale( LC_ALL, $current_locale ); 80 80 } 81 82 /** 83 * @ticket 18510 84 */ 85 function test_wpdb_supposedly_protected_properties() { 86 global $wpdb; 87 88 $this->assertNotEmpty( $wpdb->dbh ); 89 $dbh = $wpdb->dbh; 90 $this->assertNotEmpty( $dbh ); 91 $this->assertTrue( isset( $wpdb->dbh ) ); // Test __isset() 92 unset( $wpdb->dbh ); 93 $this->assertNull( $wpdb->dbh ); 94 $wpdb->dbh = $dbh; 95 $this->assertNotEmpty( $wpdb->dbh ); 96 } 81 97 }
Note: See TracChangeset
for help on using the changeset viewer.