Changeset 42056 for trunk/tests/phpunit/tests/comment/query.php
- Timestamp:
- 10/31/2017 11:59:43 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/comment/query.php
r41848 r42056 1219 1219 */ 1220 1220 public function test_search_int_0_should_not_be_ignored() { 1221 global $wpdb; 1221 1222 $q = new WP_Comment_Query(); 1222 1223 $q->query( array( 1223 1224 'search' => 0, 1224 1225 ) ); 1225 $this->assertContains( "comment_author LIKE '%0%'", $ q->request);1226 $this->assertContains( "comment_author LIKE '%0%'", $wpdb->remove_placeholder_escape( $q->request ) ); 1226 1227 } 1227 1228 … … 1230 1231 */ 1231 1232 public function test_search_string_0_should_not_be_ignored() { 1233 global $wpdb; 1232 1234 $q = new WP_Comment_Query(); 1233 1235 $q->query( array( 1234 1236 'search' => '0', 1235 1237 ) ); 1236 $this->assertContains( "comment_author LIKE '%0%'", $ q->request);1238 $this->assertContains( "comment_author LIKE '%0%'", $wpdb->remove_placeholder_escape( $q->request ) ); 1237 1239 } 1238 1240
Note: See TracChangeset
for help on using the changeset viewer.