Make WordPress Core


Ignore:
Timestamp:
07/03/2014 01:42:57 AM (12 years ago)
Author:
wonderboymusic
Message:

Setup rewrite changes in tests in a predictable fashion. Don't mix method calls with wrapper function calls.

See #28706.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/canonical/pageOnFront.php

    r25002 r28966  
    1616                update_option( 'page_on_front', $this->factory->post->create( array( 'post_title' => 'front-page', 'post_type' => 'page' ) ) );
    1717                $wp_rewrite->init();
    18                 flush_rewrite_rules();
     18                $wp_rewrite->flush_rules();
     19        }
     20
     21        function tearDown() {
     22                global $wp_rewrite;
     23                parent::tearDown();
     24                $wp_rewrite->init();
    1925        }
    2026
Note: See TracChangeset for help on using the changeset viewer.