Tests: Rename $d
variable in some date/time tests to $format
for clarity.
Follow-up to [47287]. See #49222. git-svn-id: https://develop.svn.wordpress.org/trunk@47288 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
543944257c
commit
d4cc38581b
@ -432,8 +432,8 @@ class Tests_General_Template extends WP_UnitTestCase {
|
||||
$GLOBALS['post'] = $post;
|
||||
|
||||
$expected = '1453390476';
|
||||
$d = 'G';
|
||||
$actual = get_the_modified_time( $d );
|
||||
$format = 'G';
|
||||
$actual = get_the_modified_time( $format );
|
||||
$this->assertEquals( $expected, $actual );
|
||||
}
|
||||
|
||||
@ -479,9 +479,9 @@ class Tests_General_Template extends WP_UnitTestCase {
|
||||
'post_date_gmt' => '2016-01-21 15:34:36',
|
||||
);
|
||||
$post_id = $this->factory->post->create( $details );
|
||||
$d = 'Y-m-d';
|
||||
$format = 'Y-m-d';
|
||||
$expected = '2016-01-21';
|
||||
$actual = get_the_modified_date( $d, $post_id );
|
||||
$actual = get_the_modified_date( $format, $post_id );
|
||||
$this->assertEquals( $expected, $actual );
|
||||
}
|
||||
|
||||
@ -503,8 +503,8 @@ class Tests_General_Template extends WP_UnitTestCase {
|
||||
$GLOBALS['post'] = $post;
|
||||
|
||||
$expected = '2016-01-21';
|
||||
$d = 'Y-m-d';
|
||||
$actual = get_the_modified_date( $d );
|
||||
$format = 'Y-m-d';
|
||||
$actual = get_the_modified_date( $format );
|
||||
$this->assertEquals( $expected, $actual );
|
||||
}
|
||||
|
||||
@ -550,9 +550,9 @@ class Tests_General_Template extends WP_UnitTestCase {
|
||||
'post_date_gmt' => '2016-01-21 15:34:36',
|
||||
);
|
||||
$post_id = $this->factory->post->create( $details );
|
||||
$d = 'G';
|
||||
$format = 'G';
|
||||
$expected = '1453390476';
|
||||
$actual = get_the_modified_time( $d, $post_id );
|
||||
$actual = get_the_modified_time( $format, $post_id );
|
||||
$this->assertEquals( $expected, $actual );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user