Changeset 47338 for branches/3.8/tests/phpunit/tests/feed/rss2.php
- Timestamp:
- 02/21/2020 01:05:39 PM (6 years ago)
- Location:
- branches/3.8
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
tests/phpunit/tests/feed/rss2.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/3.8
- Property svn:mergeinfo changed
-
branches/3.8/tests/phpunit/tests/feed/rss2.php
r25002 r47338 111 111 112 112 // author 113 $creator = xml_find($items[$i]['child'], 'dc:creator'); 114 $this->assertEquals($this->author->user_nicename, $creator[0]['content']); 113 $creator = xml_find( $items[$i]['child'], 'dc:creator' ); 114 $user = new WP_User( $posts[$i]->post_author ); 115 $this->assertEquals( $user->user_login, $creator[0]['content'] ); 115 116 116 117 // categories (perhaps multiple) 117 118 $categories = xml_find($items[$i]['child'], 'category'); 118 $cat_ids = wp_get_post_categories($post ->ID);119 $cat_ids = wp_get_post_categories($posts[$i]->ID); 119 120 if (empty($cat_ids)) $cat_ids = array(1); 120 121 // should be the same number of categories
Note: See TracChangeset
for help on using the changeset viewer.