Make WordPress Core

Changeset 44577


Ignore:
Timestamp:
01/14/2019 04:54:01 AM (8 years ago)
Author:
pento
Message:

Tests: Add missing parent::setUp() calls to all test classes.

Props johnbillion, birgire.
Fixes #37375.

Location:
trunk/tests/phpunit/tests
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/admin/includesScreen.php

    r43571 r44577  
    127127        function setUp() {
    128128                set_current_screen( 'front' );
     129                parent::setUp();
    129130        }
    130131
  • trunk/tests/phpunit/tests/filesystem/base.php

    r42343 r44577  
    66abstract class WP_Filesystem_UnitTestCase extends WP_UnitTestCase {
    77        function setUp() {
     8                parent::setUp();
    89                add_filter( 'filesystem_method_file', array( $this, 'filter_abstraction_file' ) );
    910                add_filter( 'filesystem_method', array( $this, 'filter_fs_method' ) );
  • trunk/tests/phpunit/tests/formatting/redirect.php

    r42343 r44577  
    88class Tests_Formatting_Redirect extends WP_UnitTestCase {
    99        function setUp() {
     10                parent::setUp();
    1011                add_filter( 'home_url', array( $this, 'home_url' ) );
    1112        }
  • trunk/tests/phpunit/tests/http/base.php

    r44573 r44577  
    4040
    4141        function setUp() {
     42                parent::setUp();
    4243
    4344                if ( is_callable( array( 'WP_Http', '_getTransport' ) ) ) {
  • trunk/tests/phpunit/tests/image/editor.php

    r43571 r44577  
    1515         * Setup test fixture
    1616         */
    17         public function setup() {
     17        public function setUp() {
    1818                require_once( ABSPATH . WPINC . '/class-wp-image-editor.php' );
    1919
  • trunk/tests/phpunit/tests/locale.php

    r42343 r44577  
    1212
    1313        public function setUp() {
     14                parent::setUp();
    1415                $this->locale = new WP_Locale();
    1516        }
  • trunk/tests/phpunit/tests/oembed/WpEmbed.php

    r43571 r44577  
    1111
    1212        public function setUp() {
     13                parent::setUp();
    1314                $this->wp_embed = new WP_Embed();
    1415        }
  • trunk/tests/phpunit/tests/pomo/po.php

    r43571 r44577  
    66class Tests_POMO_PO extends WP_UnitTestCase {
    77        function setUp() {
     8                parent::setUp();
    89                require_once ABSPATH . '/wp-includes/pomo/po.php';
    910                // not so random wordpress.pot string -- multiple lines
  • trunk/tests/phpunit/tests/rewrite/rewriteTags.php

    r36218 r44577  
    1212        public function setUp() {
    1313                global $wp_rewrite;
     14                parent::setUp();
     15
    1416                $this->wp_rewrite = $wp_rewrite;
    1517                $wp_rewrite       = new WP_Rewrite();
  • trunk/tests/phpunit/tests/taxonomy/getObjectTaxonomies.php

    r43571 r44577  
    66class Tests_Taxonomy_GetObjectTaxonomies extends WP_UnitTestCase {
    77        public function setUp() {
     8                parent::setUp();
    89                register_post_type( 'wptests_pt' );
    910                register_taxonomy( 'wptests_tax', 'wptests_pt' );
  • trunk/tests/phpunit/tests/wp.php

    r36177 r44577  
    1111
    1212        public function setUp() {
     13                parent::setUp();
    1314                $this->wp = new WP();
    1415        }
Note: See TracChangeset for help on using the changeset viewer.