Changeset 42059 for branches/4.6/tests/phpunit/tests/comment/query.php
- Timestamp:
- 10/31/2017 12:40:24 PM (7 years ago)
- Location:
- branches/4.6
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.6
- Property svn:mergeinfo changed
/trunk merged: 41662,42056
- Property svn:mergeinfo changed
-
branches/4.6/tests/phpunit/tests/comment/query.php
r38537 r42059 1223 1223 */ 1224 1224 public function test_search_int_0_should_not_be_ignored() { 1225 global $wpdb; 1225 1226 $q = new WP_Comment_Query(); 1226 1227 $q->query( array( 1227 1228 'search' => 0, 1228 1229 ) ); 1229 $this->assertContains( "comment_author LIKE '%0%'", $ q->request);1230 $this->assertContains( "comment_author LIKE '%0%'", $wpdb->remove_placeholder_escape( $q->request ) ); 1230 1231 } 1231 1232 … … 1234 1235 */ 1235 1236 public function test_search_string_0_should_not_be_ignored() { 1237 global $wpdb; 1236 1238 $q = new WP_Comment_Query(); 1237 1239 $q->query( array( 1238 1240 'search' => '0', 1239 1241 ) ); 1240 $this->assertContains( "comment_author LIKE '%0%'", $ q->request);1242 $this->assertContains( "comment_author LIKE '%0%'", $wpdb->remove_placeholder_escape( $q->request ) ); 1241 1243 } 1242 1244
Note: See TracChangeset
for help on using the changeset viewer.