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

See #33968.


git-svn-id: https://develop.svn.wordpress.org/trunk@34870 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Drew Jaynes 2015-10-06 16:01:38 +00:00
parent 81fed4b639
commit 3aca4edffa

View File

@ -6,19 +6,9 @@
class Tests_Rewrite_AddRewriteRule extends WP_UnitTestCase { class Tests_Rewrite_AddRewriteRule extends WP_UnitTestCase {
public function setUp() { public function setUp() {
global $wp_rewrite;
parent::setUp(); parent::setUp();
$wp_rewrite->init(); $this->set_permalink_structure( '/%postname%/' );
$wp_rewrite->set_permalink_structure( '/%postname%/' );
$wp_rewrite->flush_rules();
}
public function tearDown() {
global $wp_rewrite;
$wp_rewrite->init();
parent::tearDown();
} }
/** /**