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:
parent
ade972bf86
commit
2a4558a312
@ -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.',
|
||||
|
Loading…
Reference in New Issue
Block a user