Multisite: Fix usage of incorrect `site_count` network option name in unit tests.

The unit tests introduced as part of [40486] used the wrong `site_count` network option name instead of `blog_count`. This did not cause actual issues in the tests, but deleting the option was supposed to verify that it is properly recreated afterwards. The usage of the wrong name made these tests less useful, so this changeset fixes it.

Fixes #40725.


git-svn-id: https://develop.svn.wordpress.org/trunk@40611 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Felix Arntz 2017-05-10 23:12:24 +00:00
parent 1d1220d566
commit 883c0b04a9
1 changed files with 2 additions and 2 deletions

View File

@ -445,7 +445,7 @@ class Tests_Multisite_Network extends WP_UnitTestCase {
* @ticket 40386
*/
public function test_wp_update_network_counts() {
delete_network_option( null, 'site_count' );
delete_network_option( null, 'blog_count' );
delete_network_option( null, 'user_count' );
wp_update_network_counts();
@ -460,7 +460,7 @@ class Tests_Multisite_Network extends WP_UnitTestCase {
* @ticket 40386
*/
public function test_wp_update_network_counts_on_different_network() {
delete_network_option( self::$different_network_id, 'site_count' );
delete_network_option( self::$different_network_id, 'blog_count' );
delete_network_option( self::$different_network_id, 'user_count' );
wp_update_network_counts( self::$different_network_id );