From 0c14ff0574c7802864b66c1fcdd59e4c264296a3 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Tue, 25 Oct 2016 20:58:13 +0000 Subject: [PATCH] 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 --- tests/phpunit/tests/feed/atom.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/phpunit/tests/feed/atom.php b/tests/phpunit/tests/feed/atom.php index 74fdf7a147..fbe064b375 100644 --- a/tests/phpunit/tests/feed/atom.php +++ b/tests/phpunit/tests/feed/atom.php @@ -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.',