Make WordPress Core

Changeset 34870


Ignore:
Timestamp:
10/06/2015 04:01:38 PM (9 years ago)
Author:
DrewAPicture
Message:

Tests: Update Tests_Rewrite_AddRewriteRule->setUp() to use the new set_permalink_structure() helper.

See #33968.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/rewrite/addRewriteRule.php

    r34847 r34870  
    77
    88    public function setUp() {
    9         global $wp_rewrite;
    109        parent::setUp();
    1110
    12         $wp_rewrite->init();
    13         $wp_rewrite->set_permalink_structure( '/%postname%/' );
    14         $wp_rewrite->flush_rules();
    15     }
    16 
    17     public function tearDown() {
    18         global $wp_rewrite;
    19         $wp_rewrite->init();
    20 
    21         parent::tearDown();
     11        $this->set_permalink_structure( '/%postname%/' );
    2212    }
    2313
Note: See TracChangeset for help on using the changeset viewer.