Changeset 27073 for trunk/tests/phpunit/tests/db.php
- Timestamp:
- 02/02/2014 09:46:07 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/db.php
r27072 r27073 194 194 return $modes; 195 195 } 196 197 /** 198 * @ticket 25604 199 * @expectedIncorrectUsage wpdb::prepare 200 */ 201 function test_prepare_without_arguments() { 202 global $wpdb; 203 $id = 0; 204 // This, obviously, is an incorrect prepare. 205 $prepared = $wpdb->prepare( "SELECT * FROM $wpdb->users WHERE id = $id", $id ); 206 $this->assertEquals( "SELECT * FROM $wpdb->users WHERE id = 0", $prepared ); 207 } 196 208 }
Note: See TracChangeset
for help on using the changeset viewer.