diff --git a/tests/phpunit/tests/comment/commentsTemplate.php b/tests/phpunit/tests/comment/commentsTemplate.php index 8039f7345a..b00256c3a7 100644 --- a/tests/phpunit/tests/comment/commentsTemplate.php +++ b/tests/phpunit/tests/comment/commentsTemplate.php @@ -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 */