WordPress.org

Make WordPress Core

Changeset 31845


Ignore:
Timestamp:
03/20/2015 12:25:18 PM (6 years ago)
Author:
boonebgorges
Message:

Ensure that fixtures in RSS2 tests have an author.

This makes the 'dc:creator' assertions more meaningful.

Props ianmjones.
See #31705.

File:
1 edited

Legend:

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

    r30295 r31845  
    1414        parent::setUp();
    1515
    16         $this->factory->post->create_many( 25 );
     16        $u = $this->factory->user->create();
     17        $this->factory->post->create_many( 25, array(
     18            'post_author' => $u,
     19        ) );
    1720
    1821        $this->post_count = get_option('posts_per_rss');
Note: See TracChangeset for help on using the changeset viewer.