Multisite: Fix unstable unit test for `get_blog_count()`.

The unit test introduced in [40370] used the strict `assertSame()` check while comparison a count with the value of an option, which under most conditions is not an integer. While the test passed on some setups, it failed on others. This changeset ensures that `assertEquals()` is used to make the test stable.

Fixes #40724.


git-svn-id: https://develop.svn.wordpress.org/trunk@40610 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Felix Arntz 2017-05-10 23:02:42 +00:00
parent 19f9a9ee2d
commit 1d1220d566
1 changed files with 1 additions and 1 deletions

View File

@ -202,7 +202,7 @@ class Tests_Multisite_Network extends WP_UnitTestCase {
$site_count = get_blog_count( self::$different_network_id );
$this->assertSame( count( self::$different_site_ids ), $site_count );
$this->assertEquals( count( self::$different_site_ids ), $site_count );
}
/**