Make WordPress Core


Ignore:
Timestamp:
10/03/2015 05:14:12 PM (10 years ago)
Author:
DrewAPicture
Message:

Tests: Introduce WP_UnitTestCase::reset_permalinks(), an attempt to DRY up logic for resetting and restoring default permalinks on setUp() and tearDown().

See #33968.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/link/getNextCommentsLink.php

    r34561 r34802  
    77 */
    88class Tests_Link_GetNextCommentsLink extends WP_UnitTestCase {
    9     public function setUp() {
    10         global $wp_rewrite;
    11 
    12         parent::setUp();
    13 
    14         $wp_rewrite->set_permalink_structure( '' );
    15         $wp_rewrite->flush_rules();
    16     }
    179
    1810    public function test_page_should_respect_value_of_cpage_query_var() {
Note: See TracChangeset for help on using the changeset viewer.