Changeset 48952 for trunk/tests/phpunit/tests/multisite/site.php
- Timestamp:
- 09/07/2020 03:12:17 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/multisite/site.php
r48939 r48952 410 410 411 411 // Compare the update time with the current time, allow delta < 2. 412 $this->assertEquals ( $current_time, strtotime( $blog->last_updated ), 'The dates should be equal', 2);412 $this->assertEqualsWithDelta( $current_time, strtotime( $blog->last_updated ), 2, 'The dates should be equal' ); 413 413 } 414 414 … … 1793 1793 1794 1794 $site = get_site( $site_id ); 1795 $this->assertEquals ( strtotime( $first_date ), strtotime( $site->registered ), 'The dates should be equal', 2);1796 $this->assertEquals ( strtotime( $first_date ), strtotime( $site->last_updated ), 'The dates should be equal', 2);1795 $this->assertEqualsWithDelta( strtotime( $first_date ), strtotime( $site->registered ), 2, 'The dates should be equal' ); 1796 $this->assertEqualsWithDelta( strtotime( $first_date ), strtotime( $site->last_updated ), 2, 'The dates should be equal' ); 1797 1797 1798 1798 $second_date = current_time( 'mysql', true ); … … 1801 1801 1802 1802 $site = get_site( $site_id ); 1803 $this->assertEquals ( strtotime( $first_date ), strtotime( $site->registered ), 'The dates should be equal', 2);1804 $this->assertEquals ( strtotime( $second_date ), strtotime( $site->last_updated ), 'The dates should be equal', 2);1803 $this->assertEqualsWithDelta( strtotime( $first_date ), strtotime( $site->registered ), 2, 'The dates should be equal' ); 1804 $this->assertEqualsWithDelta( strtotime( $second_date ), strtotime( $site->last_updated ), 2, 'The dates should be equal' ); 1805 1805 } 1806 1806
Note: See TracChangeset
for help on using the changeset viewer.