WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/21/2016 11:02:37 AM (4 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/wp-tests-config-sample.php

    r36372 r38858  
    33/* Path to the WordPress codebase you'd like to test. Add a forward slash in the end. */
    44define( 'ABSPATH', dirname( __FILE__ ) . '/src/' );
     5
     6/*
     7 * Path to the theme to test with.
     8 *
     9 * The 'default' theme is symlinked from test/phpunit/data/themedir1/default into
     10 * the themes directory of the WordPress install defined above.
     11 */
     12define( 'WP_DEFAULT_THEME', 'default' );
    513
    614// Test with multisite enabled.
Note: See TracChangeset for help on using the changeset viewer.