Make WordPress Core


Ignore:
Timestamp:
10/21/2016 11:02:37 AM (8 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/control.php

    r38850 r38858  
    3232        // @codingStandardsIgnoreEnd
    3333        $this->wp_customize = $GLOBALS['wp_customize'];
    34 
    35         // Remove default theme actions that interfere with tests
    36         remove_action( 'customize_register', 'twentyseventeen_customize_register' );
    3734    }
    3835
Note: See TracChangeset for help on using the changeset viewer.