From 47643f762126d4c695d2ead8500cdadc07f82e8d Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 29 Sep 2019 12:21:29 +0000 Subject: [PATCH] Coding Standards: Remove inline assignments and extra whitespace in `tests/multisite/network.php`. Props garrett-eclipse, jrf. See #48142. git-svn-id: https://develop.svn.wordpress.org/trunk@46343 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/multisite/network.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/phpunit/tests/multisite/network.php b/tests/phpunit/tests/multisite/network.php index fbfea7a1a4..f6d0984a1e 100644 --- a/tests/phpunit/tests/multisite/network.php +++ b/tests/phpunit/tests/multisite/network.php @@ -273,8 +273,8 @@ if ( is_multisite() ) : add_action( 'deactivated_plugin', array( $this, '_helper_deactivate_hook' ) ); // Activate the plugin sitewide. - activate_plugin( $path, '', $network_wide = true ); // Enable the plugin for all sites in the network. - $active_plugins = wp_get_active_network_plugins(); + activate_plugin( $path, '', true ); // Enable the plugin for all sites in the network. + $active_plugins = wp_get_active_network_plugins(); $this->assertEquals( array( WP_PLUGIN_DIR . '/hello.php' ), $active_plugins ); // Deactivate the plugin. @@ -284,8 +284,8 @@ if ( is_multisite() ) : $this->assertEquals( 1, $this->plugin_hook_count ); // Testing actions and silent mode. - activate_plugin( $path, '', $network_wide = true ); // Enable the plugin for all sites in the network. - deactivate_plugins( $path, true ); // Silent mode. + activate_plugin( $path, '', true ); // Enable the plugin for all sites in the network. + deactivate_plugins( $path, true ); // Silent mode. $this->assertEquals( 1, $this->plugin_hook_count ); // Testing actions and silent mode. }