Skip to:
Content

bbPress.org

Ticket #3316: 3316.patch

File 3316.patch, 1.5 KB (added by passoniate, 23 months ago)

Patch

  • tests/phpunit/testcases/topics/template/links.php

     
    4040        public function test_bbp_get_topic_freshness_link() {
    4141
    4242                if ( is_multisite() ) {
    43                         $this->markTestSkipped( 'Skipping URL tests in multiste for now.' );
     43                        $this->markTestSkipped( 'Skipping URL tests in multisite for now.' );
    4444                }
    4545
    4646                $now = time();
     
    9292        public function test_bbp_get_topic_freshness_link_with_unpublished_replies() {
    9393
    9494                if ( is_multisite() ) {
    95                         $this->markTestSkipped( 'Skipping URL tests in multiste for now.' );
     95                        $this->markTestSkipped( 'Skipping URL tests in multisite for now.' );
    9696                }
    9797
    9898                $now = time();
    99                 $post_date    = date( 'Y-m-d H:i:s', $now - 60 * 60 * 20 ); // 2o hours ago
     99                $post_date    = date( 'Y-m-d H:i:s', $now - 60 * 60 * 20 ); // 20 hours ago
    100100                $post_date_r1 = date( 'Y-m-d H:i:s', $now - 60 * 60 * 18 ); // 18 hours ago
    101101                $post_date_r2 = date( 'Y-m-d H:i:s', $now - 60 * 60 * 16 ); // 16 hours ago
    102102                $post_date_r3 = date( 'Y-m-d H:i:s', $now - 60 * 60 * 14 ); // 14 hours ago
    103103                $post_date_r4 = date( 'Y-m-d H:i:s', $now - 60 * 60 * 12 ); // 12 hours ago
    104                 $post_date_r5 = date( 'Y-m-d H:i:s', $now - 60 * 60 * 10 ); // 1o hours ago
     104                $post_date_r5 = date( 'Y-m-d H:i:s', $now - 60 * 60 * 10 ); // 10 hours ago
    105105
    106106                $f = $this->factory->forum->create();
    107107                $t = $this->factory->topic->create( array(