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/rest-api/rest-block-renderer-controller.php

    r49603 r50449  
    134134         */
    135135        public function setUp() {
     136                parent::setUp();
     137
    136138                $this->register_test_block();
    137139                $this->register_post_context_test_block();
    138140                $this->register_non_dynamic_block();
    139141                $this->register_dynamic_block_with_boolean_attributes();
    140                 parent::setUp();
    141142        }
    142143
Note: See TracChangeset for help on using the changeset viewer.