Changeset 40449 for branches/4.0/tests/phpunit/tests/feed/rss2.php
- Timestamp:
- 04/15/2017 08:19:49 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.0/tests/phpunit/tests/feed/rss2.php
r25002 r40449 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.