public function test_archive_feed_to_display_return_format()
 {
     $feed_id = $this->factory->feed->create();
     $time = time();
     $feed_item_id = $this->factory->feed_item->create(array('post_parent' => $feed_id, 'item_title' => 'Test item', 'item_link' => 'Test link', 'item_content' => 'Test content', 'source_title' => 'Test source title', 'sortable_item_date' => 10000, 'item_date' => 20000, 'item_author' => 'foo', 'item_feat_img' => 'Test feat img', 'item_wp_date' => $time));
     $found = PF_Feed_Item::archive_feed_to_display(1);
     $expected = array('item_title' => 'Test item', 'source_title' => 'Test source title', 'item_date' => '20000', 'item_author' => 'foo', 'item_content' => 'Test content', 'item_link' => 'Test link', 'item_feat_img' => 'Test feat img', 'item_id' => '', 'item_wp_date' => (string) $time, 'item_tags' => '', 'item_added_date' => date('o-m-d\\TH:i:sO', $time), 'source_repeat' => '', 'post_id' => $feed_item_id, 'readable_status' => '');
     // Check each key individually because format may change in the future.
     $this->assertNotEmpty($found['rss_archive_0']);
     $keys = array('item_title', 'source_title', 'item_date', 'item_author', 'item_content', 'item_link', 'item_feat_img', 'item_id', 'item_wp_date', 'item_tags', 'item_added_date', 'source_repeat', 'post_id', 'readable_status');
     foreach ($keys as $key) {
         $this->assertEquals($expected[$key], $found['rss_archive_0'][$key]);
     }
 }