Make WordPress Core


Ignore:
Timestamp:
10/03/2015 05:14:12 PM (9 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/comment/commentsTemplate.php

    r34741 r34802  
    77 */
    88class Tests_Comment_CommentsTemplate extends WP_UnitTestCase {
    9     public function setUp() {
    10         parent::setUp();
    11 
    12         global $wp_rewrite;
    13         $wp_rewrite->set_permalink_structure( '' );
    14         flush_rewrite_rules();
    15     }
    169
    1710    /**
Note: See TracChangeset for help on using the changeset viewer.