Changeset 47122 for trunk/tests/phpunit/tests/comment/dateQuery.php
- Timestamp:
- 01/29/2020 12:43:23 AM (6 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/comment/dateQuery.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/comment/dateQuery.php
r46586 r47122 21 21 parent::setUp(); 22 22 23 // Just some dummy posts to use as parents for comments 23 // Just some dummy posts to use as parents for comments. 24 24 for ( $i = 1; $i <= 2; $i++ ) { 25 25 $this->posts[ $i ] = self::factory()->post->create(); … … 27 27 28 28 // Be careful modifying this. Tests are coded to expect this exact sample data. 29 // Format is 'datetime' => 'post number (not ID)' 29 // Format is 'datetime' => 'post number (not ID)'. 30 30 $comment_dates = array( 31 31 '2007-01-22 03:49:21' => 1, … … 33 33 '2007-09-24 07:17:23' => 1, 34 34 '2008-03-29 09:04:25' => 1, 35 '2008-07-15 11:32:26' => 2, // This one should never be in the results 35 '2008-07-15 11:32:26' => 2, // This one should never be in the results. 36 36 '2008-12-10 13:06:27' => 1, 37 37 '2009-06-11 21:30:28' => 1, … … 54 54 array( 55 55 'post_id' => $this->posts[1], 56 'orderby' => 'comment_ID', // Same order they were created 56 'orderby' => 'comment_ID', // Same order they were created. 57 57 'order' => 'ASC', 58 58 )
Note: See TracChangeset
for help on using the changeset viewer.