WordPress.org

Make WordPress Core


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

    r38850 r38858  
    5959        $this->manager = $this->instantiate();
    6060        $this->undefined = new stdClass();
    61 
    62         // Remove default theme actions that interfere with tests
    63         remove_action( 'customize_register', 'twentyseventeen_customize_register' );
    6461    }
    6562
Note: See TracChangeset for help on using the changeset viewer.