From 6de5ae56ddb2e0b2f0224e3233a0c889ed7f67cb Mon Sep 17 00:00:00 2001 From: Boone Gorges Date: Fri, 20 Mar 2015 12:25:18 +0000 Subject: [PATCH] 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 --- tests/phpunit/tests/feed/rss2.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/phpunit/tests/feed/rss2.php b/tests/phpunit/tests/feed/rss2.php index cc82556121..312af3fe99 100644 --- a/tests/phpunit/tests/feed/rss2.php +++ b/tests/phpunit/tests/feed/rss2.php @@ -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');