From aba30dc39057fb222ffe640c6d993bc98d519687 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Fri, 22 Apr 2016 23:47:27 +0000 Subject: [PATCH] Unit Tests: prevent rewrite spillage from `@group author` unit tests. See #36587. git-svn-id: https://develop.svn.wordpress.org/trunk@37306 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/user/author.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/phpunit/tests/user/author.php b/tests/phpunit/tests/user/author.php index 73ae3b6999..69ca5ce6ce 100644 --- a/tests/phpunit/tests/user/author.php +++ b/tests/phpunit/tests/user/author.php @@ -140,6 +140,8 @@ class Tests_User_Author_Template extends WP_UnitTestCase { $url = sprintf( 'http://%1$s/author/%2$s/', WP_TESTS_DOMAIN, $author->user_nicename ); + $this->set_permalink_structure( '' ); + $this->assertContains( $url, $link ); $this->assertContains( 'Posts by Foo', $link ); $this->assertContains( '>Foo', $link );