Tests: Correct assertions in test_site_dates_are_gmt()
.
`assertSame()` doesn't have the `$delta` parameter, only `assertEquals()` does. Follow-up to [47313]. See #40364. git-svn-id: https://develop.svn.wordpress.org/trunk@47318 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2d73050eda
commit
e4dda92bc5
@ -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 );
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user