WordPress.org

Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/4.4/tests/phpunit/tests/comment/getCommentLink.php

    r35331 r35936  
    121121        $this->assertContains( 'cpage=3', $found );
    122122    }
     123
     124    /**
     125     * @ticket 34946
     126     */
     127    public function test_should_not_contain_comment_page_1_when_pagination_is_disabled() {
     128        $this->set_permalink_structure( '/%postname%/' );
     129        update_option( 'page_comments', 0 );
     130
     131        $found = get_comment_link( $this->comments[1] );
     132
     133        $this->assertNotContains( 'comment-page-1', $found );
     134    }
    123135}
Note: See TracChangeset for help on using the changeset viewer.