Make sure permastruct is set in comments_template() tests.

After [34735].

git-svn-id: https://develop.svn.wordpress.org/trunk@34741 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Boone Gorges
2015-10-01 12:26:33 +00:00
parent e4a147150e
commit 2828042b6e

View File

@@ -6,6 +6,14 @@
* Testing items that are only testable by grabbing the markup of `comments_template()` from the output buffer.
*/
class Tests_Comment_CommentsTemplate extends WP_UnitTestCase {
public function setUp() {
parent::setUp();
global $wp_rewrite;
$wp_rewrite->set_permalink_structure( '' );
flush_rewrite_rules();
}
/**
* @ticket 8071
*/