From 2828042b6ebef870920d142521561c43dda37443 Mon Sep 17 00:00:00 2001 From: Boone Gorges Date: Thu, 1 Oct 2015 12:26:33 +0000 Subject: [PATCH] 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 --- tests/phpunit/tests/comment/commentsTemplate.php | 8 ++++++++ 1 file changed, 8 insertions(+) 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 */