From 2a4558a312e6caa5475d1b8d25625f5ac1c85bbb Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Tue, 25 Oct 2016 20:16:58 +0000 Subject: [PATCH] Feeds: Greatly reduce the number of dummy posts that are generated for the RSS2 tests. This speeds the tests up. See #35160, #30210 git-svn-id: https://develop.svn.wordpress.org/trunk@38924 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/feed/rss2.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/phpunit/tests/feed/rss2.php b/tests/phpunit/tests/feed/rss2.php index 45b607d176..4b2b696446 100644 --- a/tests/phpunit/tests/feed/rss2.php +++ b/tests/phpunit/tests/feed/rss2.php @@ -30,8 +30,10 @@ class Tests_Feeds_RSS2 extends WP_UnitTestCase { 'slug' => 'test-cat', ) ); + $count = get_option( 'posts_per_rss' ) + 1; + // Create a few posts - self::$posts = $factory->post->create_many( 42, array( + self::$posts = $factory->post->create_many( $count, array( 'post_author' => self::$user_id, 'post_content' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec velit massa, ultrices eu est suscipit, mattis posuere est. Donec vitae purus lacus. Cras vitae odio odio.', 'post_excerpt' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.',