Ensure that fixtures in RSS2 tests have an author.

This makes the 'dc:creator' assertions more meaningful.

Props ianmjones.
See #31705.

git-svn-id: https://develop.svn.wordpress.org/trunk@31845 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Boone Gorges 2015-03-20 12:25:18 +00:00
parent 630aac94a3
commit 6de5ae56dd
1 changed files with 4 additions and 1 deletions

View File

@ -13,7 +13,10 @@ class Tests_Feed_RSS2 extends WP_UnitTestCase {
function setUp() {
parent::setUp();
$this->factory->post->create_many( 25 );
$u = $this->factory->user->create();
$this->factory->post->create_many( 25, array(
'post_author' => $u,
) );
$this->post_count = get_option('posts_per_rss');
$this->excerpt_only = get_option('rss_use_excerpt');