Changeset 47314
- Timestamp:
- 02/19/2020 02:54:55 AM (6 years ago)
- Location:
- branches/5.3
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
tests/phpunit/tests/multisite/site.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/5.3
-
branches/5.3/tests/phpunit/tests/multisite/site.php
r45910 r47314 406 406 wpmu_update_blogs_date(); 407 407 408 // compare the update time with the current time, allow delta < 2409 $ blog = get_site( get_current_blog_id());410 $current_time = time(); 411 $time_difference = $current_time - strtotime( $blog->last_updated );412 $this->assert LessThan( 2, $time_difference);408 $blog = get_site( get_current_blog_id() ); 409 $current_time = time(); 410 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 ); 413 413 } 414 414 … … 1769 1769 1770 1770 $site = get_site( $site_id ); 1771 $this->assertSame( $first_date, $site->registered);1772 $this->assertSame( $first_date, $site->last_updated);1771 $this->assertSame( strtotime( $first_date ), strtotime( $site->registered ), 'The dates should be equal', 2 ); 1772 $this->assertSame( strtotime( $first_date ), strtotime( $site->last_updated ), 'The dates should be equal', 2 ); 1773 1773 1774 1774 $second_date = current_time( 'mysql', true ); … … 1777 1777 1778 1778 $site = get_site( $site_id ); 1779 $this->assertSame( $first_date, $site->registered);1780 $this->assertSame( $second_date, $site->last_updated);1779 $this->assertSame( strtotime( $first_date ), strtotime( $site->registered ), 'The dates should be equal', 2 ); 1780 $this->assertSame( strtotime( $second_date ), strtotime( $site->last_updated ), 'The dates should be equal', 2 ); 1781 1781 } 1782 1782
Note: See TracChangeset
for help on using the changeset viewer.