From 983d5c94e8d01938c37d98d1aed33c83affbf2de Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 15 Jun 2016 18:30:32 +0000 Subject: [PATCH] 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 --- tests/phpunit/tests/functions/pluginBasename.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/tests/functions/pluginBasename.php b/tests/phpunit/tests/functions/pluginBasename.php index c7a90e23c3..fb8a7d858d 100644 --- a/tests/phpunit/tests/functions/pluginBasename.php +++ b/tests/phpunit/tests/functions/pluginBasename.php @@ -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' );