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
This commit is contained in:
John Blackbourn 2016-10-25 20:16:58 +00:00
parent ade972bf86
commit 2a4558a312
1 changed files with 3 additions and 1 deletions

View File

@ -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.',