Plugins: Normalize `WP_PLUGIN_DIR` in the test added in [37332], otherwise it fails on Windows.

See #29154.

git-svn-id: https://develop.svn.wordpress.org/trunk@37719 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2016-06-15 18:30:32 +00:00
parent 25a27bff7d
commit 983d5c94e8
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ class Tests_Plugin_Basename extends WP_UnitTestCase {
$old_wp_plugin_paths = $wp_plugin_paths;
$wp_plugin_paths[ WP_PLUGIN_DIR . '/a-symlinked-plugin' ] = 'C:/www/path/plugins/a-plugin';
$wp_plugin_paths[ wp_normalize_path( WP_PLUGIN_DIR ) . '/a-symlinked-plugin' ] = 'C:/www/path/plugins/a-plugin';
$basename = plugin_basename( 'c:\www\path\plugins\a-plugin\plugin.php' );