Make WordPress Core


Ignore:
Timestamp:
02/27/2021 04:54:52 PM (4 years ago)
Author:
johnbillion
Message:

Build/Test Tools: Fix and standardise calls to the setUp() and setUpBeforeClass() methods in the test suite.

The parent methods should always be called before any test-specific functionality is set up, unless there is a specific and documented reason.

See #52625

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/post/formats.php

    r49354 r50449  
    55 */
    66class Tests_Post_Formats extends WP_UnitTestCase {
    7     function setUp() {
    8         parent::setUp();
    9     }
    10 
    117    function test_set_get_post_format_for_post() {
    128        $post_id = self::factory()->post->create();
Note: See TracChangeset for help on using the changeset viewer.