mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user