Feeds: Greatly reduce the number of dummy posts that are generated for the Atom tests, following on from [38924].

See #35160


git-svn-id: https://develop.svn.wordpress.org/trunk@38927 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn 2016-10-25 20:58:13 +00:00
parent 87e7c0cd96
commit 0c14ff0574
1 changed files with 3 additions and 1 deletions

View File

@ -30,8 +30,10 @@ class Tests_Feeds_Atom 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.',