Tests: Correct hardcoded "3 months ago" assertion in tests/rest-api/rest-block-directory-controller.php.

Now that more than 3 months have passed since 2020-03-23, this was causing test failures.

Follow-up to [48242].

See #50321.

git-svn-id: https://develop.svn.wordpress.org/trunk@48333 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2020-07-06 09:49:07 +00:00
parent 8119c5ed77
commit b82c472f24

View File

@ -168,8 +168,8 @@ class WP_REST_Block_Directory_Controller_Test extends WP_Test_REST_Controller_Te
'https://ps.w.org/guidepost/tags/1.2.1/build/guidepost-style.css?v=1584940380',
'https://ps.w.org/guidepost/tags/1.2.1/build/guidepost-theme.js?v=1584940380',
),
'last_updated' => '2020-03-23T05:13:00',
'humanized_updated' => '3 months ago',
'last_updated' => gmdate( 'Y-m-d\TH:i:s', strtotime( $plugin['last_updated'] ) ),
'humanized_updated' => sprintf( '%s ago', human_time_diff( strtotime( $plugin['last_updated'] ) ) ),
);
$this->assertEquals( $expected, $response->get_data() );