mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@38858 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -3,6 +3,14 @@
|
||||
/* Path to the WordPress codebase you'd like to test. Add a forward slash in the end. */
|
||||
define( 'ABSPATH', dirname( __FILE__ ) . '/src/' );
|
||||
|
||||
/*
|
||||
* Path to the theme to test with.
|
||||
*
|
||||
* The 'default' theme is symlinked from test/phpunit/data/themedir1/default into
|
||||
* the themes directory of the WordPress install defined above.
|
||||
*/
|
||||
define( 'WP_DEFAULT_THEME', 'default' );
|
||||
|
||||
// Test with multisite enabled.
|
||||
// Alternatively, use the tests/phpunit/multisite.xml configuration file.
|
||||
// define( 'WP_TESTS_MULTISITE', true );
|
||||
|
||||
Reference in New Issue
Block a user