Make sure hundreds of canonical tests don't fail in multisite every other time they are run.

See #28706.


git-svn-id: https://develop.svn.wordpress.org/trunk@28964 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor
2014-07-03 00:49:32 +00:00
parent 53f98b80b7
commit 80a817ebcc
2 changed files with 9 additions and 4 deletions
+2 -1
View File
@@ -34,8 +34,9 @@ class Tests_Link extends WP_UnitTestCase {
$post_id = $this->factory->post->create();
$post_id2 = $this->factory->post->create();
$wp_rewrite->permalink_structure = '';
$wp_rewrite->init();
$wp_rewrite->set_permalink_structure( '' );
$wp_rewrite->flush_rules();
// Basic case
$this->assertEquals( get_permalink( $post_id ), wp_get_shortlink( $post_id, 'post' ) );