Make WordPress Core


Ignore:
Timestamp:
11/25/2020 04:09:41 AM (5 years ago)
Author:
peterwilsoncc
Message:

Build/Test Tools: Remove unused posts from AJAX test setUp().

Removes the creation of five posts from the AJAX test suite setUp() function, replacing it with a shared fixture only where required.

See #51802.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/testcase-ajax.php

    r48998 r49696  
    150150        $this->_error_level = error_reporting();
    151151        error_reporting( $this->_error_level & ~E_WARNING );
    152 
    153         // Make some posts.
    154         self::factory()->post->create_many( 5 );
    155152    }
    156153
Note: See TracChangeset for help on using the changeset viewer.