Make WordPress Core

Changeset 35154


Ignore:
Timestamp:
10/14/2015 02:38:30 PM (11 years ago)
Author:
boonebgorges
Message:

Create fewer fixtures in XML-RPC getComments tests.

See #30017, #33968.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/xmlrpc/wp/getComments.php

    r34570 r35154  
    77        var $post_id;
    88
    9         function setUp() {
    10                 parent::setUp();
    11 
    12                 $this->post_id = $this->factory->post->create();
    13                 $this->factory->comment->create_post_comments( $this->post_id, 15 );
    14         }
    15 
    169        function test_invalid_username_password() {
    1710                $result = $this->myxmlrpcserver->wp_getComments( array( 1, 'username', 'password', array() ) );
     
    2922
    3023        function test_capable_user() {
     24                $this->post_id = $this->factory->post->create();
     25                $this->factory->comment->create_post_comments( $this->post_id, 2 );
     26
    3127                $this->make_user_by_role( 'editor' );
    3228
     
    4137
    4238        function test_post_filter() {
     39                $this->post_id = $this->factory->post->create();
     40                $this->factory->comment->create_post_comments( $this->post_id, 2 );
     41
    4342                $this->make_user_by_role( 'editor' );
    4443
     
    5453
    5554        function test_number_filter() {
     55                $this->post_id = $this->factory->post->create();
     56                $this->factory->comment->create_post_comments( $this->post_id, 11 );
     57
    5658                $this->make_user_by_role( 'editor' );
    5759
Note: See TracChangeset for help on using the changeset viewer.