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.php

    r34690 r34802  
    4040        $post_id = $this->factory->post->create();
    4141        $post_id2 = $this->factory->post->create();
    42 
    43         $wp_rewrite->init();
    44         $wp_rewrite->set_permalink_structure( '' );
    45         $wp_rewrite->flush_rules();
    4642
    4743        // Basic case
Note: See TracChangeset for help on using the changeset viewer.