Make WordPress Core


Ignore:
Timestamp:
08/31/2020 10:41:02 PM (4 years ago)
Author:
SergeyBiryukov
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.
Fixes #51184.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/date/getCommentDate.php

    r48912 r48924  
    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.