Changeset 57750 for trunk/tests/phpunit/tests/comment/query.php
- Timestamp:
- 03/02/2024 01:36:02 PM (2 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/comment/query.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/comment/query.php
r57653 r57750 5351 5351 $this->assertStringNotContainsString( ' comment_ID ', $wpdb->last_query ); 5352 5352 } 5353 5354 /** 5355 * @ticket 56841 5356 */ 5357 public function test_query_does_not_have_leading_whitespace() { 5358 self::factory()->comment->create( 5359 array( 5360 'comment_post_ID' => self::$post_id, 5361 'user_id' => 7, 5362 ) 5363 ); 5364 5365 $q = new WP_Comment_Query(); 5366 $q->query( 5367 array( 5368 'count' => true, 5369 'orderby' => 'none', 5370 ) 5371 ); 5372 5373 $this->assertSame( ltrim( $q->request ), $q->request, 'The query has leading whitespace' ); 5374 } 5353 5375 }
Note: See TracChangeset
for help on using the changeset viewer.