Make WordPress Core


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

    r49184 r50449  
    1010
    1111        function setUp() {
     12                parent::setUp();
    1213
    1314                $this->walker = new Walker_Test();
    14 
    15                 parent::setUp();
    16 
    1715        }
    1816
Note: See TracChangeset for help on using the changeset viewer.