WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/21/2016 11:02:37 AM (5 years ago)
Author:
pento
Message:

Tests: Use a minimal theme for tests.

New default themes require workarounds being added to several unit tests, as they often alter default WordPress behaviour. To avoid ongoing maintenance issues, this change switches to a minimal theme when running tests.

This change also removes the old workarounds for default themes.

Fixes #31550.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/customize/selective-refresh-ajax.php

    r38851 r38858  
    5252            $this->selective_refresh = $this->wp_customize->selective_refresh;
    5353        }
    54 
    55         // Remove default theme actions that interfere with tests
    56         remove_action( 'customize_register', 'twentyseventeen_customize_register' );
    5754    }
    5855
     
    6158     */
    6259    function do_customize_boot_actions() {
    63         // Remove actions that call add_theme_support( 'title-tag' ).
    64         remove_action( 'after_setup_theme', 'twentyfifteen_setup' );
    65         remove_action( 'after_setup_theme', 'twentysixteen_setup' );
    66         remove_action( 'after_setup_theme', 'twentyseventeen_setup' );
    67 
    6860        $_SERVER['REQUEST_METHOD'] = 'POST';
    6961        do_action( 'setup_theme' );
Note: See TracChangeset for help on using the changeset viewer.