Make WordPress Core


Ignore:
Timestamp:
02/27/2021 04:54:52 PM (5 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/comment/query.php

    r49603 r50449  
    1212    public static function wpSetUpBeforeClass( WP_UnitTest_Factory $factory ) {
    1313        self::$post_id = $factory->post->create();
    14     }
    15 
    16     function setUp() {
    17         parent::setUp();
    1814    }
    1915
Note: See TracChangeset for help on using the changeset viewer.