diff --git a/tests/phpunit/tests/multisite/site.php b/tests/phpunit/tests/multisite/site.php index 508cbd1319..fc7d5bf13b 100644 --- a/tests/phpunit/tests/multisite/site.php +++ b/tests/phpunit/tests/multisite/site.php @@ -1766,16 +1766,16 @@ if ( is_multisite() ) : $this->assertInternalType( 'integer', $site_id ); $site = get_site( $site_id ); - $this->assertSame( strtotime( $first_date ), strtotime( $site->registered ), 'The dates should be equal', 2 ); - $this->assertSame( strtotime( $first_date ), strtotime( $site->last_updated ), 'The dates should be equal', 2 ); + $this->assertEquals( strtotime( $first_date ), strtotime( $site->registered ), 'The dates should be equal', 2 ); + $this->assertEquals( strtotime( $first_date ), strtotime( $site->last_updated ), 'The dates should be equal', 2 ); $second_date = current_time( 'mysql', true ); $site_id = wp_update_site( $site_id, array() ); $this->assertInternalType( 'integer', $site_id ); $site = get_site( $site_id ); - $this->assertSame( strtotime( $first_date ), strtotime( $site->registered ), 'The dates should be equal', 2 ); - $this->assertSame( strtotime( $second_date ), strtotime( $site->last_updated ), 'The dates should be equal', 2 ); + $this->assertEquals( strtotime( $first_date ), strtotime( $site->registered ), 'The dates should be equal', 2 ); + $this->assertEquals( strtotime( $second_date ), strtotime( $site->last_updated ), 'The dates should be equal', 2 ); } /**