From 883c0b04a9321fe622ce329e974d93d41858d85e Mon Sep 17 00:00:00 2001 From: Felix Arntz Date: Wed, 10 May 2017 23:12:24 +0000 Subject: [PATCH] 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 --- tests/phpunit/tests/multisite/network.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/tests/multisite/network.php b/tests/phpunit/tests/multisite/network.php index 46f977c760..b1830d2329 100644 --- a/tests/phpunit/tests/multisite/network.php +++ b/tests/phpunit/tests/multisite/network.php @@ -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 );