Make WordPress Core


Ignore:
Timestamp:
08/31/2020 10:49:18 PM (4 years ago)
Author:
desrosj
Message:

Tests: Move the tests for get_the_modified_time() to a more appropriate place.

Add some new tests to better cover the functionality, for consistency with get_the_date() and get_the_time().

Follow-up to [48911], [48912], [48918].

Props wittich.
Merges [48924] to the 5.5 branch.
Fixes #51184.

Location:
branches/5.5
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.5

  • branches/5.5/tests/phpunit/tests/date/getCommentDate.php

    r48921 r48926  
    1111     * @ticket 51184
    1212     */
    13     function test_get_comment_date_returns_correct_time_with_comment_id() {
     13    public function test_get_comment_date_returns_correct_time_with_comment_id() {
    1414        $c = self::factory()->comment->create( array( 'comment_date' => '2020-08-29 01:51:00' ) );
    1515
     
    2020     * @ticket 51184
    2121     */
    22     function test_get_comment_date_returns_correct_time_with_empty_format() {
     22    public function test_get_comment_date_returns_correct_time_with_empty_format() {
    2323        $c = self::factory()->comment->create( array( 'comment_date' => '2020-08-29 01:51:00' ) );
    2424
     
    3030     * @ticket 51184
    3131     */
    32     function test_get_comment_time_returns_correct_time() {
     32    public function test_get_comment_time_returns_correct_time() {
    3333        $c = self::factory()->comment->create( array( 'comment_date' => '2020-08-29 01:51:00' ) );
    3434
     
    4040     * @ticket 51184
    4141     */
    42     function test_get_comment_time_returns_correct_time_with_empty_format() {
     42    public function test_get_comment_time_returns_correct_time_with_empty_format() {
    4343        $c = self::factory()->comment->create( array( 'comment_date' => '2020-08-29 01:51:00' ) );
    4444
Note: See TracChangeset for help on using the changeset viewer.