Changeset 56985 for trunk/tests/phpunit/tests/sitemaps/sitemaps.php
- Timestamp:
- 10/23/2023 03:40:44 PM (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/sitemaps/sitemaps.php
r51492 r56985 252 252 $post_list = $providers['posts']->get_url_list( 1, 'page' ); 253 253 254 $post_list_sorted = wp_list_sort( $post_list, 'lastmod', 'DESC' ); 255 254 256 $expected = $this->_get_expected_url_list( 'page', self::$pages ); 255 257 … … 258 260 $expected, 259 261 array( 260 'loc' => home_url( '/' ), 262 'loc' => home_url( '/' ), 263 'lastmod' => $post_list_sorted[0]['lastmod'], 261 264 ) 262 265 ); … … 379 382 static function ( $post ) { 380 383 return array( 381 'loc' => get_permalink( $post ), 384 'loc' => get_permalink( $post ), 385 'lastmod' => get_post_modified_time( DATE_W3C, true, $post ), 382 386 ); 383 387 },
Note: See TracChangeset
for help on using the changeset viewer.