Changeset 47329 for branches/3.9/tests/phpunit/tests/feed/rss2.php
- Timestamp:
- 02/20/2020 05:04:42 PM (5 years ago)
- Location:
- branches/3.9
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.9
-
branches/3.9/tests/phpunit/tests/feed/rss2.php
r25002 r47329 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.