Make WordPress Core

Changeset 38924


Ignore:
Timestamp:
10/25/2016 08:16:58 PM (8 years ago)
Author:
johnbillion
Message:

Feeds: Greatly reduce the number of dummy posts that are generated for the RSS2 tests. This speeds the tests up.

See #35160, #30210

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/feed/rss2.php

    r38398 r38924  
    3131        ) );
    3232
     33        $count = get_option( 'posts_per_rss' ) + 1;
     34
    3335        // Create a few posts
    34         self::$posts = $factory->post->create_many( 42, array(
     36        self::$posts = $factory->post->create_many( $count, array(
    3537            'post_author'  => self::$user_id,
    3638            '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.',
Note: See TracChangeset for help on using the changeset viewer.