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
This commit is contained in:
parent
c3dfdf84af
commit
47643f7621
@ -273,8 +273,8 @@ if ( is_multisite() ) :
|
|||||||
add_action( 'deactivated_plugin', array( $this, '_helper_deactivate_hook' ) );
|
add_action( 'deactivated_plugin', array( $this, '_helper_deactivate_hook' ) );
|
||||||
|
|
||||||
// Activate the plugin sitewide.
|
// Activate the plugin sitewide.
|
||||||
activate_plugin( $path, '', $network_wide = true ); // Enable the plugin for all sites in the network.
|
activate_plugin( $path, '', true ); // Enable the plugin for all sites in the network.
|
||||||
$active_plugins = wp_get_active_network_plugins();
|
$active_plugins = wp_get_active_network_plugins();
|
||||||
$this->assertEquals( array( WP_PLUGIN_DIR . '/hello.php' ), $active_plugins );
|
$this->assertEquals( array( WP_PLUGIN_DIR . '/hello.php' ), $active_plugins );
|
||||||
|
|
||||||
// Deactivate the plugin.
|
// Deactivate the plugin.
|
||||||
@ -284,8 +284,8 @@ if ( is_multisite() ) :
|
|||||||
|
|
||||||
$this->assertEquals( 1, $this->plugin_hook_count ); // Testing actions and silent mode.
|
$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.
|
activate_plugin( $path, '', true ); // Enable the plugin for all sites in the network.
|
||||||
deactivate_plugins( $path, true ); // Silent mode.
|
deactivate_plugins( $path, true ); // Silent mode.
|
||||||
|
|
||||||
$this->assertEquals( 1, $this->plugin_hook_count ); // Testing actions and silent mode.
|
$this->assertEquals( 1, $this->plugin_hook_count ); // Testing actions and silent mode.
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user