WordPress.org

Make WordPress Core

Changeset 47288


Ignore:
Timestamp:
02/14/2020 12:11:00 AM (2 weeks ago)
Author:
SergeyBiryukov
Message:

Tests: Rename $d variable in some date/time tests to $format for clarity.

Follow-up to [47287].

See #49222.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/general/template.php

    r47198 r47288  
    433433
    434434        $expected = '1453390476';
    435         $d        = 'G';
    436         $actual   = get_the_modified_time( $d );
     435        $format   = 'G';
     436        $actual   = get_the_modified_time( $format );
    437437        $this->assertEquals( $expected, $actual );
    438438    }
     
    480480        );
    481481        $post_id  = $this->factory->post->create( $details );
    482         $d        = 'Y-m-d';
     482        $format   = 'Y-m-d';
    483483        $expected = '2016-01-21';
    484         $actual   = get_the_modified_date( $d, $post_id );
     484        $actual   = get_the_modified_date( $format, $post_id );
    485485        $this->assertEquals( $expected, $actual );
    486486    }
     
    504504
    505505        $expected = '2016-01-21';
    506         $d        = 'Y-m-d';
    507         $actual   = get_the_modified_date( $d );
     506        $format   = 'Y-m-d';
     507        $actual   = get_the_modified_date( $format );
    508508        $this->assertEquals( $expected, $actual );
    509509    }
     
    551551        );
    552552        $post_id  = $this->factory->post->create( $details );
    553         $d        = 'G';
     553        $format   = 'G';
    554554        $expected = '1453390476';
    555         $actual   = get_the_modified_time( $d, $post_id );
     555        $actual   = get_the_modified_time( $format, $post_id );
    556556        $this->assertEquals( $expected, $actual );
    557557    }
Note: See TracChangeset for help on using the changeset viewer.