Skip to:
Content

bbPress.org

Changeset 5929


Ignore:
Timestamp:
08/25/2015 11:20:48 AM (6 years ago)
Author:
netweb
Message:

Tests: Fix incorrect reply post date time assertion in test_bbp_get_topic_last_active_time()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/testcases/topics/template/get-last-thing.php

    r5873 r5929  
    4646
    4747        $now = time();
    48         $post_date_topic = date( 'Y-m-d H:i:s', $now - 60*60*100 );
    49         $post_date_reply = date( 'Y-m-d H:i:s', $now - 60*60*80 );
     48        $post_date_topic = date( 'Y-m-d H:i:s', $now - 60 * 60 * 100 );
     49        $post_date_reply = date( 'Y-m-d H:i:s', $now - 60 * 60 * 80 );
    5050
    5151        $topic_time = '4 days, 4 hours ago';
    52         $reply_time = '1 hour, 6 minutes ago';
     52        $reply_time = '3 days, 8 hours ago';
    5353
    5454        $t = $this->factory->topic->create( array(
     
    7979        // Reply time.
    8080        $datetime = bbp_get_topic_last_active_time( $t );
    81         $this->assertSame( '1 hour, 6 minutes ago', $reply_time );
     81        $this->assertSame( '3 days, 8 hours ago', $datetime );
    8282
    8383    }
Note: See TracChangeset for help on using the changeset viewer.