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/includes/testcase-ajax.php

    r49696 r50449  
    117117
    118118    public static function setUpBeforeClass() {
     119        parent::setUpBeforeClass();
     120
    119121        remove_action( 'admin_init', '_maybe_update_core' );
    120122        remove_action( 'admin_init', '_maybe_update_plugins' );
     
    127129            }
    128130        }
    129 
    130         parent::setUpBeforeClass();
    131131    }
    132132
Note: See TracChangeset for help on using the changeset viewer.