From d4cc38581bb89249fc2999e4af62b2056409f95e Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 14 Feb 2020 00:11:00 +0000 Subject: [PATCH] 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 --- tests/phpunit/tests/general/template.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/phpunit/tests/general/template.php b/tests/phpunit/tests/general/template.php index 5b396058e4..170a86d9f9 100644 --- a/tests/phpunit/tests/general/template.php +++ b/tests/phpunit/tests/general/template.php @@ -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 ); }