Make WordPress Core


Ignore:
Timestamp:
10/20/2016 09:06:11 AM (8 years ago)
Author:
pento
Message:

Tests: Fix tests that don't pass when Twenty Seventeen is the default theme.

There are some tests who's outcome can be affected by the default theme, so we need to ensure the Twenty Seventeen functionality is unhooked while the tests are running.

See #38372.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/customize/widgets.php

    r37352 r38838  
    4545        remove_action( 'after_setup_theme', 'twentysixteen_setup' );
    4646        remove_action( 'customize_register', 'twentysixteen_customize_register', 11 );
     47        remove_action( 'after_setup_theme', 'twentyseventeen_setup' );
    4748
    4849        $this->backup_registered_sidebars = $GLOBALS['wp_registered_sidebars'];
Note: See TracChangeset for help on using the changeset viewer.