Changeset 45424 for trunk/tests/phpunit/tests/post/listPages.php
- Timestamp:
- 05/26/2019 12:11:37 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/listPages.php
r42402 r45424 50 50 self::$time = time(); 51 51 52 $post_date = date( 'Y-m-d H:i:s', self::$time );52 $post_date = gmdate( 'Y-m-d H:i:s', self::$time ); 53 53 54 54 self::$parent_1 = self::factory()->post->create( … … 158 158 'show_date' => true, 159 159 ); 160 $date = date( get_option( 'date_format' ), self::$time );160 $date = gmdate( get_option( 'date_format' ), self::$time ); 161 161 162 162 $expected = '<li class="pagenav">Pages<ul><li class="page_item page-item-' . self::$parent_1 . ' page_item_has_children"><a href="' . get_permalink( self::$parent_1 ) . '">Parent 1</a> ' . $date . '</li> … … 174 174 'date_format' => 'l, F j, Y', 175 175 ); 176 $date = date( $args['date_format'], self::$time );176 $date = gmdate( $args['date_format'], self::$time ); 177 177 178 178 $expected = '<li class="pagenav">Pages<ul><li class="page_item page-item-' . self::$parent_1 . ' page_item_has_children"><a href="' . get_permalink( self::$parent_1 ) . '">Parent 1</a> ' . $date . '
Note: See TracChangeset
for help on using the changeset viewer.