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/feed/wp-simplepie-file.php

    r49803 r50449  
    1818class Tests_WP_SimplePie_File extends WP_UnitTestCase {
    1919        public static function setUpBeforeClass() {
     20                parent::setUpBeforeClass();
     21
    2022                require_once ABSPATH . '/wp-includes/class-simplepie.php';
    2123                require_once ABSPATH . '/wp-includes/class-wp-simplepie-file.php';
Note: See TracChangeset for help on using the changeset viewer.