Changeset 41497 for branches/4.8/tests/phpunit/tests/db.php
- Timestamp:
- 09/19/2017 06:10:58 PM (8 years ago)
- Location:
- branches/4.8
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.8
-
branches/4.8/tests/phpunit/tests/db.php
r41471 r41497 274 274 } 275 275 276 276 277 /** 277 278 * Test that SQL modes are set correctly … … 1116 1117 $this->assertSame( 'utf8_general_ci', $result['collate'] ); 1117 1118 } 1119 1120 /** 1121 * 1122 */ 1123 function test_prepare_with_unescaped_percents() { 1124 global $wpdb; 1125 1126 $sql = $wpdb->prepare( '%d %1$d %%% %', 1 ); 1127 $this->assertEquals( '1 %1$d %% %', $sql ); 1128 } 1118 1129 }
Note: See TracChangeset
for help on using the changeset viewer.