<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[50463] trunk/tests/phpunit/tests: Build/Test Tools: Remove redundant teardown functionality from individual tests which is already covered in the base teardown method.</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { white-space: pre-line; overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta" style="font-size: 105%">
<dt style="float: left; width: 6em; font-weight: bold">Revision</dt> <dd><a style="font-weight: bold" href="https://core.trac.wordpress.org/changeset/50463">50463</a><script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"Review this Commit","action":{"@type":"ViewAction","url":"https://core.trac.wordpress.org/changeset/50463","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>johnbillion</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2021-03-01 18:42:49 +0000 (Mon, 01 Mar 2021)</dd>
</dl>

<pre style='padding-left: 1em; margin: 2em 0; border-left: 2px solid #ccc; line-height: 1.25; font-size: 105%; font-family: sans-serif'>Build/Test Tools: Remove redundant teardown functionality from individual tests which is already covered in the base teardown method.

See <a href="https://core.trac.wordpress.org/ticket/52625">#52625</a></pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunktestsphpunittestscommentgetCommentAuthorEmailLinkphp">trunk/tests/phpunit/tests/comment/getCommentAuthorEmailLink.php</a></li>
<li><a href="#trunktestsphpunittestsdbphp">trunk/tests/phpunit/tests/db.php</a></li>
<li><a href="#trunktestsphpunittestsformattingExcerptRemoveBlocksphp">trunk/tests/phpunit/tests/formatting/ExcerptRemoveBlocks.php</a></li>
<li><a href="#trunktestsphpunittestsformattingredirectphp">trunk/tests/phpunit/tests/formatting/redirect.php</a></li>
<li><a href="#trunktestsphpunittestsfunctionsdoEnclosephp">trunk/tests/phpunit/tests/functions/doEnclose.php</a></li>
<li><a href="#trunktestsphpunittestsgeneralwpGetDocumentTitlephp">trunk/tests/phpunit/tests/general/wpGetDocumentTitle.php</a></li>
<li><a href="#trunktestsphpunittestsgeneralwpResourceHintsphp">trunk/tests/phpunit/tests/general/wpResourceHints.php</a></li>
<li><a href="#trunktestsphpunittestshttpbasephp">trunk/tests/phpunit/tests/http/base.php</a></li>
<li><a href="#trunktestsphpunittestshttpwpGetHttpHeadersphp">trunk/tests/phpunit/tests/http/wpGetHttpHeaders.php</a></li>
<li><a href="#trunktestsphpunittestsimagebasephp">trunk/tests/phpunit/tests/image/base.php</a></li>
<li><a href="#trunktestsphpunittestsimageresizephp">trunk/tests/phpunit/tests/image/resize.php</a></li>
<li><a href="#trunktestsphpunittestsimportimportphp">trunk/tests/phpunit/tests/import/import.php</a></li>
<li><a href="#trunktestsphpunittestsl10ngetUserLocalephp">trunk/tests/phpunit/tests/l10n/getUserLocale.php</a></li>
<li><a href="#trunktestsphpunittestsl10nloadTextdomainphp">trunk/tests/phpunit/tests/l10n/loadTextdomain.php</a></li>
<li><a href="#trunktestsphpunittestsl10nloadTextdomainJustInTimephp">trunk/tests/phpunit/tests/l10n/loadTextdomainJustInTime.php</a></li>
<li><a href="#trunktestsphpunittestsmultisitegetSpaceAllowedphp">trunk/tests/phpunit/tests/multisite/getSpaceAllowed.php</a></li>
<li><a href="#trunktestsphpunittestsmultisiteisUploadSpaceAvailablephp">trunk/tests/phpunit/tests/multisite/isUploadSpaceAvailable.php</a></li>
<li><a href="#trunktestsphpunittestsmultisitemsfilesrewritingphp">trunk/tests/phpunit/tests/multisite/ms-files-rewriting.php</a></li>
<li><a href="#trunktestsphpunittestsoembedcontrollerphp">trunk/tests/phpunit/tests/oembed/controller.php</a></li>
<li><a href="#trunktestsphpunittestspostrevisionsphp">trunk/tests/phpunit/tests/post/revisions.php</a></li>
<li><a href="#trunktestsphpunittestsqueryisTermphp">trunk/tests/phpunit/tests/query/isTerm.php</a></li>
<li><a href="#trunktestsphpunittestsquerysearchphp">trunk/tests/phpunit/tests/query/search.php</a></li>
<li><a href="#trunktestsphpunittestsrestapirestattachmentscontrollerphp">trunk/tests/phpunit/tests/rest-api/rest-attachments-controller.php</a></li>
<li><a href="#trunktestsphpunittestsrestapirestcategoriescontrollerphp">trunk/tests/phpunit/tests/rest-api/rest-categories-controller.php</a></li>
<li><a href="#trunktestsphpunittestsrestapirestpagescontrollerphp">trunk/tests/phpunit/tests/rest-api/rest-pages-controller.php</a></li>
<li><a href="#trunktestsphpunittestsrestapirestpostscontrollerphp">trunk/tests/phpunit/tests/rest-api/rest-posts-controller.php</a></li>
<li><a href="#trunktestsphpunittestsrestapirestrevisionscontrollerphp">trunk/tests/phpunit/tests/rest-api/rest-revisions-controller.php</a></li>
<li><a href="#trunktestsphpunittestsrestapirestschemasetupphp">trunk/tests/phpunit/tests/rest-api/rest-schema-setup.php</a></li>
<li><a href="#trunktestsphpunittestsrestapiresttagscontrollerphp">trunk/tests/phpunit/tests/rest-api/rest-tags-controller.php</a></li>
<li><a href="#trunktestsphpunittestsrewritenumericSlugsphp">trunk/tests/phpunit/tests/rewrite/numericSlugs.php</a></li>
<li><a href="#trunktestsphpunittestsrewriteoldSlugRedirectphp">trunk/tests/phpunit/tests/rewrite/oldSlugRedirect.php</a></li>
<li><a href="#trunktestsphpunittestsrewriterewriteTagsphp">trunk/tests/phpunit/tests/rewrite/rewriteTags.php</a></li>
<li><a href="#trunktestsphpunitteststhemeWPThemephp">trunk/tests/phpunit/tests/theme/WPTheme.php</a></li>
<li><a href="#trunktestsphpunitteststhemethemeDirphp">trunk/tests/phpunit/tests/theme/themeDir.php</a></li>
<li><a href="#trunktestsphpunittestsuserauthorphp">trunk/tests/phpunit/tests/user/author.php</a></li>
<li><a href="#trunktestsphpunittestsusercountUserPostsphp">trunk/tests/phpunit/tests/user/countUserPosts.php</a></li>
<li><a href="#trunktestsphpunittestsuserwpSendUserRequestphp">trunk/tests/phpunit/tests/user/wpSendUserRequest.php</a></li>
<li><a href="#trunktestsphpunittestsxmlrpcwpgetPostTypephp">trunk/tests/phpunit/tests/xmlrpc/wp/getPostType.php</a></li>
<li><a href="#trunktestsphpunittestsxmlrpcwpgetUserphp">trunk/tests/phpunit/tests/xmlrpc/wp/getUser.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunktestsphpunittestscommentgetCommentAuthorEmailLinkphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/comment/getCommentAuthorEmailLink.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/comment/getCommentAuthorEmailLink.php   2021-03-01 16:56:08 UTC (rev 50462)
+++ trunk/tests/phpunit/tests/comment/getCommentAuthorEmailLink.php     2021-03-01 18:42:49 UTC (rev 50463)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -18,8 +18,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public function tearDown() {
</span><span class="cx" style="display: block; padding: 0 10px">                unset( $GLOBALS['comment'] );
</span><span class="cx" style="display: block; padding: 0 10px">                parent::tearDown();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-
-               add_filter( 'comment_email', 'antispambot' );
</del><span class="cx" style="display: block; padding: 0 10px">         }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        public static function wpSetUpBeforeClass( WP_UnitTest_Factory $factory ) {
</span></span></pre></div>
<a id="trunktestsphpunittestsdbphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/db.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/db.php  2021-03-01 16:56:08 UTC (rev 50462)
+++ trunk/tests/phpunit/tests/db.php    2021-03-01 18:42:49 UTC (rev 50463)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -36,14 +36,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-         * Tear down the test fixture
-        */
-       public function tearDown() {
-               remove_filter( 'query', array( $this, 'query_filter' ) );
-               parent::tearDown();
-       }
-
-       /**
</del><span class="cx" style="display: block; padding: 0 10px">          * Log each query
</span><span class="cx" style="display: block; padding: 0 10px">         *
</span><span class="cx" style="display: block; padding: 0 10px">         * @param string $sql
</span></span></pre></div>
<a id="trunktestsphpunittestsformattingExcerptRemoveBlocksphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/formatting/ExcerptRemoveBlocks.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/formatting/ExcerptRemoveBlocks.php      2021-03-01 16:56:08 UTC (rev 50462)
+++ trunk/tests/phpunit/tests/formatting/ExcerptRemoveBlocks.php        2021-03-01 18:42:49 UTC (rev 50463)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -83,7 +83,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">        function tearDown() {
</span><span class="cx" style="display: block; padding: 0 10px">                $registry = WP_Block_Type_Registry::get_instance();
</span><span class="cx" style="display: block; padding: 0 10px">                $registry->unregister( 'core/fake' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                wp_delete_post( self::$post_id, true );
</del><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                parent::tearDown();
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span></span></pre></div>
<a id="trunktestsphpunittestsformattingredirectphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/formatting/redirect.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/formatting/redirect.php 2021-03-01 16:56:08 UTC (rev 50462)
+++ trunk/tests/phpunit/tests/formatting/redirect.php   2021-03-01 18:42:49 UTC (rev 50463)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -11,11 +11,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                add_filter( 'home_url', array( $this, 'home_url' ) );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        function tearDown() {
-               remove_filter( 'home_url', array( $this, 'home_url' ) );
-               parent::tearDown();
-       }
-
</del><span class="cx" style="display: block; padding: 0 10px">         function home_url() {
</span><span class="cx" style="display: block; padding: 0 10px">                return 'http://example.com/';
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span></span></pre></div>
<a id="trunktestsphpunittestsfunctionsdoEnclosephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/functions/doEnclose.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/functions/doEnclose.php 2021-03-01 16:56:08 UTC (rev 50462)
+++ trunk/tests/phpunit/tests/functions/doEnclose.php   2021-03-01 18:42:49 UTC (rev 50463)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -29,16 +29,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-         * Cleanup after each test method.
-        *
-        * @since 5.3.0
-        */
-       public function tearDown() {
-               parent::tearDown();
-               remove_filter( 'pre_http_request', array( $this, 'fake_http_request' ) );
-       }
-
-       /**
</del><span class="cx" style="display: block; padding: 0 10px">          * Test the function with an explicit content input.
</span><span class="cx" style="display: block; padding: 0 10px">         *
</span><span class="cx" style="display: block; padding: 0 10px">         * @since 5.3.0
</span></span></pre></div>
<a id="trunktestsphpunittestsgeneralwpGetDocumentTitlephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/general/wpGetDocumentTitle.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/general/wpGetDocumentTitle.php  2021-03-01 16:56:08 UTC (rev 50462)
+++ trunk/tests/phpunit/tests/general/wpGetDocumentTitle.php    2021-03-01 18:42:49 UTC (rev 50463)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -53,11 +53,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                setup_postdata( get_post( self::$post_id ) );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        function tearDown() {
-               wp_reset_postdata();
-               parent::tearDown();
-       }
-
</del><span class="cx" style="display: block; padding: 0 10px">         function _add_title_tag_support() {
</span><span class="cx" style="display: block; padding: 0 10px">                add_theme_support( 'title-tag' );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span></span></pre></div>
<a id="trunktestsphpunittestsgeneralwpResourceHintsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/general/wpResourceHints.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/general/wpResourceHints.php     2021-03-01 16:56:08 UTC (rev 50462)
+++ trunk/tests/phpunit/tests/general/wpResourceHints.php       2021-03-01 18:42:49 UTC (rev 50463)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -27,8 +27,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">        function tearDown() {
</span><span class="cx" style="display: block; padding: 0 10px">                $GLOBALS['wp_scripts'] = $this->old_wp_scripts;
</span><span class="cx" style="display: block; padding: 0 10px">                $GLOBALS['wp_styles']  = $this->old_wp_styles;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                add_action( 'wp_default_scripts', 'wp_default_scripts' );
-               add_action( 'wp_default_styles', 'wp_default_styles' );
</del><span class="cx" style="display: block; padding: 0 10px">                 parent::tearDown();
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span></span></pre></div>
<a id="trunktestsphpunittestshttpbasephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/http/base.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/http/base.php   2021-03-01 16:56:08 UTC (rev 50462)
+++ trunk/tests/phpunit/tests/http/base.php     2021-03-01 18:42:49 UTC (rev 50463)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -39,13 +39,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        function tearDown() {
-               foreach ( array( 'curl', 'streams', 'fsockopen' ) as $t ) {
-                       remove_filter( "use_{$t}_transport", '__return_false' );
-               }
-               parent::tearDown();
-       }
-
</del><span class="cx" style="display: block; padding: 0 10px">         function filter_http_request_args( array $args ) {
</span><span class="cx" style="display: block; padding: 0 10px">                $this->http_request_args = $args;
</span><span class="cx" style="display: block; padding: 0 10px">                return $args;
</span></span></pre></div>
<a id="trunktestsphpunittestshttpwpGetHttpHeadersphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/http/wpGetHttpHeaders.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/http/wpGetHttpHeaders.php       2021-03-01 16:56:08 UTC (rev 50462)
+++ trunk/tests/phpunit/tests/http/wpGetHttpHeaders.php 2021-03-01 18:42:49 UTC (rev 50463)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -17,16 +17,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-         * Clean up environment
-        */
-       public function tearDown() {
-               parent::tearDown();
-
-               // Clear the hook for the fake HTTP request response.
-               remove_filter( 'pre_http_request', array( $this, 'fake_http_request' ) );
-       }
-
-       /**
</del><span class="cx" style="display: block; padding: 0 10px">          * Test with a valid URL
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_wp_get_http_headers_valid_url() {
</span></span></pre></div>
<a id="trunktestsphpunittestsimagebasephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/image/base.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/image/base.php  2021-03-01 16:56:08 UTC (rev 50462)
+++ trunk/tests/phpunit/tests/image/base.php    2021-03-01 18:42:49 UTC (rev 50463)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -19,14 +19,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-         * Undo the image editor override
-        */
-       public function tearDown() {
-               remove_filter( 'wp_image_editors', array( $this, 'setEngine' ), 10, 2 );
-               parent::tearDown();
-       }
-
-       /**
</del><span class="cx" style="display: block; padding: 0 10px">          * Override the image editor engine
</span><span class="cx" style="display: block; padding: 0 10px">         *
</span><span class="cx" style="display: block; padding: 0 10px">         * @return string
</span></span></pre></div>
<a id="trunktestsphpunittestsimageresizephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/image/resize.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/image/resize.php        2021-03-01 16:56:08 UTC (rev 50462)
+++ trunk/tests/phpunit/tests/image/resize.php  2021-03-01 18:42:49 UTC (rev 50463)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -16,12 +16,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                add_filter( 'wp_image_editors', array( $this, 'wp_image_editors' ) );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        public function tearDown() {
-               remove_filter( 'wp_image_editors', array( $this, 'wp_image_editors' ) );
-
-               parent::tearDown();
-       }
-
</del><span class="cx" style="display: block; padding: 0 10px">         public function wp_image_editors() {
</span><span class="cx" style="display: block; padding: 0 10px">                return array( $this->editor_engine );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span></span></pre></div>
<a id="trunktestsphpunittestsimportimportphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/import/import.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/import/import.php       2021-03-01 16:56:08 UTC (rev 50462)
+++ trunk/tests/phpunit/tests/import/import.php 2021-03-01 18:42:49 UTC (rev 50463)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -33,12 +33,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        function tearDown() {
-               remove_filter( 'import_allow_create_users', '__return_true' );
-
-               parent::tearDown();
-       }
-
</del><span class="cx" style="display: block; padding: 0 10px">         function test_small_import() {
</span><span class="cx" style="display: block; padding: 0 10px">                global $wpdb;
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span></span></pre></div>
<a id="trunktestsphpunittestsl10ngetUserLocalephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/l10n/getUserLocale.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/l10n/getUserLocale.php  2021-03-01 16:56:08 UTC (rev 50462)
+++ trunk/tests/phpunit/tests/l10n/getUserLocale.php    2021-03-01 18:42:49 UTC (rev 50463)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -21,7 +21,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        public function tearDown() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                delete_user_meta( $this->user_id, 'locale' );
</del><span class="cx" style="display: block; padding: 0 10px">                 set_current_screen( 'front' );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                parent::tearDown();
</span></span></pre></div>
<a id="trunktestsphpunittestsl10nloadTextdomainphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/l10n/loadTextdomain.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/l10n/loadTextdomain.php 2021-03-01 16:56:08 UTC (rev 50462)
+++ trunk/tests/phpunit/tests/l10n/loadTextdomain.php   2021-03-01 18:42:49 UTC (rev 50463)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -26,13 +26,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                add_filter( 'theme_locale', array( $this, 'store_locale' ) );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        public function tearDown() {
-               remove_filter( 'plugin_locale', array( $this, 'store_locale' ) );
-               remove_filter( 'theme_locale', array( $this, 'store_locale' ) );
-
-               parent::tearDown();
-       }
-
</del><span class="cx" style="display: block; padding: 0 10px">         public function store_locale( $locale ) {
</span><span class="cx" style="display: block; padding: 0 10px">                $this->locale = $locale;
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span></span></pre></div>
<a id="trunktestsphpunittestsl10nloadTextdomainJustInTimephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/l10n/loadTextdomainJustInTime.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/l10n/loadTextdomainJustInTime.php       2021-03-01 16:56:08 UTC (rev 50462)
+++ trunk/tests/phpunit/tests/l10n/loadTextdomainJustInTime.php 2021-03-01 18:42:49 UTC (rev 50463)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -40,9 +40,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        public function tearDown() {
</span><span class="cx" style="display: block; padding: 0 10px">                $GLOBALS['wp_theme_directories'] = $this->orig_theme_dir;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                remove_filter( 'theme_root', array( $this, 'filter_theme_root' ) );
-               remove_filter( 'stylesheet_root', array( $this, 'filter_theme_root' ) );
-               remove_filter( 'template_root', array( $this, 'filter_theme_root' ) );
</del><span class="cx" style="display: block; padding: 0 10px">                 wp_clean_themes_cache();
</span><span class="cx" style="display: block; padding: 0 10px">                unset( $GLOBALS['wp_themes'] );
</span><span class="cx" style="display: block; padding: 0 10px">                unset( $GLOBALS['l10n'] );
</span></span></pre></div>
<a id="trunktestsphpunittestsmultisitegetSpaceAllowedphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/multisite/getSpaceAllowed.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/multisite/getSpaceAllowed.php   2021-03-01 16:56:08 UTC (rev 50462)
+++ trunk/tests/phpunit/tests/multisite/getSpaceAllowed.php     2021-03-01 18:42:49 UTC (rev 50463)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -10,16 +10,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">        class Tests_Multisite_Get_Space_Allowed extends WP_UnitTestCase {
</span><span class="cx" style="display: block; padding: 0 10px">                protected $suppress = false;
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                protected static $original_site_blog_upload_space;
-               protected static $original_blog_upload_space;
-
-               public static function setUpBeforeClass() {
-                       parent::setUpBeforeClass();
-
-                       self::$original_site_blog_upload_space = get_site_option( 'blog_upload_space' );
-                       self::$original_blog_upload_space      = get_option( 'blog_upload_space' );
-               }
-
</del><span class="cx" style="display: block; padding: 0 10px">                 public function setUp() {
</span><span class="cx" style="display: block; padding: 0 10px">                        global $wpdb;
</span><span class="cx" style="display: block; padding: 0 10px">                        parent::setUp();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -29,13 +19,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                public function tearDown() {
</span><span class="cx" style="display: block; padding: 0 10px">                        global $wpdb;
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        /**
-                        * Reset the two `blog_upload_space` options to their original values so
-                        * they can be relied on in other test classes.
-                        */
-                       update_site_option( 'blog_upload_space', self::$original_site_blog_upload_space );
-                       update_option( 'blog_upload_space', self::$original_blog_upload_space );
-
</del><span class="cx" style="display: block; padding: 0 10px">                         $wpdb->suppress_errors( $this->suppress );
</span><span class="cx" style="display: block; padding: 0 10px">                        parent::tearDown();
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span></span></pre></div>
<a id="trunktestsphpunittestsmultisiteisUploadSpaceAvailablephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/multisite/isUploadSpaceAvailable.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/multisite/isUploadSpaceAvailable.php    2021-03-01 16:56:08 UTC (rev 50462)
+++ trunk/tests/phpunit/tests/multisite/isUploadSpaceAvailable.php      2021-03-01 18:42:49 UTC (rev 50463)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -13,16 +13,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">        class Tests_Multisite_Is_Upload_Space_Available extends WP_UnitTestCase {
</span><span class="cx" style="display: block; padding: 0 10px">                protected $suppress = false;
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                protected static $original_site_blog_upload_space;
-               protected static $original_blog_upload_space;
-
-               public static function setUpBeforeClass() {
-                       parent::setUpBeforeClass();
-
-                       self::$original_site_blog_upload_space = get_site_option( 'blog_upload_space' );
-                       self::$original_blog_upload_space      = get_option( 'blog_upload_space' );
-               }
-
</del><span class="cx" style="display: block; padding: 0 10px">                 public function setUp() {
</span><span class="cx" style="display: block; padding: 0 10px">                        global $wpdb;
</span><span class="cx" style="display: block; padding: 0 10px">                        parent::setUp();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -34,13 +24,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                public function tearDown() {
</span><span class="cx" style="display: block; padding: 0 10px">                        global $wpdb;
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        /**
-                        * Reset the two `blog_upload_space` options to their original values so
-                        * they can be relied on in other test classes.
-                        */
-                       update_site_option( 'blog_upload_space', self::$original_site_blog_upload_space );
-                       update_option( 'blog_upload_space', self::$original_blog_upload_space );
-
</del><span class="cx" style="display: block; padding: 0 10px">                         $wpdb->suppress_errors( $this->suppress );
</span><span class="cx" style="display: block; padding: 0 10px">                        parent::tearDown();
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span></span></pre></div>
<a id="trunktestsphpunittestsmultisitemsfilesrewritingphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/multisite/ms-files-rewriting.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/multisite/ms-files-rewriting.php        2021-03-01 16:56:08 UTC (rev 50462)
+++ trunk/tests/phpunit/tests/multisite/ms-files-rewriting.php  2021-03-01 18:42:49 UTC (rev 50463)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -26,7 +26,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                function tearDown() {
</span><span class="cx" style="display: block; padding: 0 10px">                        global $wpdb;
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        update_site_option( 'ms_files_rewriting', 0 );
</del><span class="cx" style="display: block; padding: 0 10px">                         $wpdb->suppress_errors( $this->suppress );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                        parent::tearDown();
</span></span></pre></div>
<a id="trunktestsphpunittestsoembedcontrollerphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/oembed/controller.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/oembed/controller.php   2021-03-01 16:56:08 UTC (rev 50462)
+++ trunk/tests/phpunit/tests/oembed/controller.php     2021-03-01 18:42:49 UTC (rev 50463)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -64,8 +64,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                global $wp_rest_server;
</span><span class="cx" style="display: block; padding: 0 10px">                $wp_rest_server = null;
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                remove_filter( 'pre_http_request', array( $this, 'mock_embed_request' ), 10 );
-               remove_filter( 'oembed_result', array( $this, 'filter_oembed_result' ), 10 );
</del><span class="cx" style="display: block; padding: 0 10px">                 parent::tearDown();
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span></span></pre></div>
<a id="trunktestsphpunittestspostrevisionsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/post/revisions.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/post/revisions.php      2021-03-01 16:56:08 UTC (rev 50462)
+++ trunk/tests/phpunit/tests/post/revisions.php        2021-03-01 18:42:49 UTC (rev 50463)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -20,11 +20,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $this->post_type = rand_str( 20 );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        function tearDown() {
-               unset( $GLOBALS['wp_post_types'][ $this->post_type ] );
-               parent::tearDown();
-       }
-
</del><span class="cx" style="display: block; padding: 0 10px">         /**
</span><span class="cx" style="display: block; padding: 0 10px">         * Note: Test needs reviewing when #16215 is fixed because I'm not sure the test current tests the "correct" behavior
</span><span class="cx" style="display: block; padding: 0 10px">         *
</span></span></pre></div>
<a id="trunktestsphpunittestsqueryisTermphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/query/isTerm.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/query/isTerm.php        2021-03-01 16:56:08 UTC (rev 50462)
+++ trunk/tests/phpunit/tests/query/isTerm.php  2021-03-01 18:42:49 UTC (rev 50463)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -65,17 +65,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                add_action( 'pre_get_posts', array( $this, 'pre_get_posts_tax_category_tax_query' ) );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        function tearDown() {
-               global $wp_rewrite;
-
-               _unregister_taxonomy( 'testtax' );
-
-               $wp_rewrite->init();
-
-               remove_action( 'pre_get_posts', array( $this, 'pre_get_posts_tax_category_tax_query' ) );
-               parent::tearDown();
-       }
-
</del><span class="cx" style="display: block; padding: 0 10px">         function test_tag_action_tax() {
</span><span class="cx" style="display: block; padding: 0 10px">                // Tag with taxonomy added.
</span><span class="cx" style="display: block; padding: 0 10px">                $this->go_to( home_url( '/tag/tag-slug/' ) );
</span></span></pre></div>
<a id="trunktestsphpunittestsquerysearchphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/query/search.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/query/search.php        2021-03-01 16:56:08 UTC (rev 50462)
+++ trunk/tests/phpunit/tests/query/search.php  2021-03-01 18:42:49 UTC (rev 50463)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -17,7 +17,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        function tearDown() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                _unregister_post_type( $this->post_type );
</del><span class="cx" style="display: block; padding: 0 10px">                 unset( $this->q );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                parent::tearDown();
</span></span></pre></div>
<a id="trunktestsphpunittestsrestapirestattachmentscontrollerphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/rest-api/rest-attachments-controller.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/rest-api/rest-attachments-controller.php        2021-03-01 16:56:08 UTC (rev 50462)
+++ trunk/tests/phpunit/tests/rest-api/rest-attachments-controller.php  2021-03-01 18:42:49 UTC (rev 50463)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -95,9 +95,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        unlink( $this->test_file2 );
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                remove_action( 'rest_insert_attachment', array( $this, 'filter_rest_insert_attachment' ) );
-               remove_action( 'rest_after_insert_attachment', array( $this, 'filter_rest_after_insert_attachment' ) );
-
</del><span class="cx" style="display: block; padding: 0 10px">                 $this->remove_added_uploads();
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                if ( class_exists( WP_Image_Editor_Mock::class ) ) {
</span></span></pre></div>
<a id="trunktestsphpunittestsrestapirestcategoriescontrollerphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/rest-api/rest-categories-controller.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/rest-api/rest-categories-controller.php 2021-03-01 16:56:08 UTC (rev 50462)
+++ trunk/tests/phpunit/tests/rest-api/rest-categories-controller.php   2021-03-01 18:42:49 UTC (rev 50463)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1182,12 +1182,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                return 123;
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        public function tearDown() {
-               _unregister_taxonomy( 'batman' );
-               _unregister_taxonomy( 'robin' );
-               parent::tearDown();
-       }
-
</del><span class="cx" style="display: block; padding: 0 10px">         protected function check_get_taxonomy_terms_response( $response ) {
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertSame( 200, $response->get_status() );
</span><span class="cx" style="display: block; padding: 0 10px">                $data       = $response->get_data();
</span></span></pre></div>
<a id="trunktestsphpunittestsrestapirestpagescontrollerphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/rest-api/rest-pages-controller.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/rest-api/rest-pages-controller.php      2021-03-01 16:56:08 UTC (rev 50462)
+++ trunk/tests/phpunit/tests/rest-api/rest-pages-controller.php        2021-03-01 18:42:49 UTC (rev 50463)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -764,11 +764,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertArrayHasKey( 'type', $properties );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        public function tearDown() {
-               parent::tearDown();
-               remove_filter( 'theme_page_templates', array( $this, 'filter_theme_page_templates' ) );
-       }
-
</del><span class="cx" style="display: block; padding: 0 10px">         public function filter_theme_page_templates( $page_templates ) {
</span><span class="cx" style="display: block; padding: 0 10px">                return array(
</span><span class="cx" style="display: block; padding: 0 10px">                        'page-my-test-template.php' => 'My Test Template',
</span></span></pre></div>
<a id="trunktestsphpunittestsrestapirestpostscontrollerphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/rest-api/rest-posts-controller.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/rest-api/rest-posts-controller.php      2021-03-01 16:56:08 UTC (rev 50462)
+++ trunk/tests/phpunit/tests/rest-api/rest-posts-controller.php        2021-03-01 18:42:49 UTC (rev 50463)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -5088,13 +5088,10 @@
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        public function tearDown() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                _unregister_post_type( 'private-post' );
-               _unregister_post_type( 'youseeme' );
</del><span class="cx" style="display: block; padding: 0 10px">                 if ( isset( $this->attachment_id ) ) {
</span><span class="cx" style="display: block; padding: 0 10px">                        $this->remove_added_uploads();
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                remove_filter( 'rest_pre_dispatch', array( $this, 'wpSetUpBeforeRequest' ), 10, 3 );
-               remove_filter( 'posts_clauses', array( $this, 'save_posts_clauses' ), 10, 2 );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
</ins><span class="cx" style="display: block; padding: 0 10px">                 parent::tearDown();
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span></span></pre></div>
<a id="trunktestsphpunittestsrestapirestrevisionscontrollerphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/rest-api/rest-revisions-controller.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/rest-api/rest-revisions-controller.php  2021-03-01 16:56:08 UTC (rev 50462)
+++ trunk/tests/phpunit/tests/rest-api/rest-revisions-controller.php    2021-03-01 18:42:49 UTC (rev 50463)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -76,12 +76,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $this->revision_id3    = $this->revision_3->ID;
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        public function tearDown() {
-               parent::tearDown();
-
-               remove_filter( 'map_meta_cap', array( $this, '_filter_map_meta_cap_remove_no_allow_revisions' ) );
-       }
-
</del><span class="cx" style="display: block; padding: 0 10px">         public function _filter_map_meta_cap_remove_no_allow_revisions( $caps, $cap, $user_id, $args ) {
</span><span class="cx" style="display: block; padding: 0 10px">                if ( 'delete_post' !== $cap || empty( $args ) ) {
</span><span class="cx" style="display: block; padding: 0 10px">                        return $caps;
</span></span></pre></div>
<a id="trunktestsphpunittestsrestapirestschemasetupphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/rest-api/rest-schema-setup.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/rest-api/rest-schema-setup.php  2021-03-01 16:56:08 UTC (rev 50462)
+++ trunk/tests/phpunit/tests/rest-api/rest-schema-setup.php    2021-03-01 18:42:49 UTC (rev 50463)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -31,7 +31,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                global $wp_rest_server;
</span><span class="cx" style="display: block; padding: 0 10px">                $wp_rest_server = null;
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                remove_filter( 'pre_http_request', array( $this, 'mock_embed_request' ), 10, 3 );
</del><span class="cx" style="display: block; padding: 0 10px">                 parent::tearDown();
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span></span></pre></div>
<a id="trunktestsphpunittestsrestapiresttagscontrollerphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/rest-api/rest-tags-controller.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/rest-api/rest-tags-controller.php       2021-03-01 16:56:08 UTC (rev 50462)
+++ trunk/tests/phpunit/tests/rest-api/rest-tags-controller.php 2021-03-01 18:42:49 UTC (rev 50463)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1400,12 +1400,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        public function tearDown() {
-               _unregister_taxonomy( 'batman' );
-               _unregister_taxonomy( 'robin' );
-               parent::tearDown();
-       }
-
</del><span class="cx" style="display: block; padding: 0 10px">         protected function check_get_taxonomy_terms_response( $response ) {
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertSame( 200, $response->get_status() );
</span><span class="cx" style="display: block; padding: 0 10px">                $data = $response->get_data();
</span></span></pre></div>
<a id="trunktestsphpunittestsrewritenumericSlugsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/rewrite/numericSlugs.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/rewrite/numericSlugs.php        2021-03-01 16:56:08 UTC (rev 50462)
+++ trunk/tests/phpunit/tests/rewrite/numericSlugs.php  2021-03-01 18:42:49 UTC (rev 50463)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -15,11 +15,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                add_filter( 'wp_unique_post_slug', array( $this, 'filter_unique_post_slug' ), 10, 6 );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        public function tearDown() {
-               parent::tearDown();
-               remove_filter( 'wp_unique_post_slug', array( $this, 'filter_unique_post_slug' ), 10, 6 );
-       }
-
</del><span class="cx" style="display: block; padding: 0 10px">         public function test_go_to_year_segment_collision_without_title() {
</span><span class="cx" style="display: block; padding: 0 10px">                global $wpdb;
</span><span class="cx" style="display: block; padding: 0 10px">                $this->set_permalink_structure( '/%postname%/' );
</span></span></pre></div>
<a id="trunktestsphpunittestsrewriteoldSlugRedirectphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/rewrite/oldSlugRedirect.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/rewrite/oldSlugRedirect.php     2021-03-01 16:56:08 UTC (rev 50462)
+++ trunk/tests/phpunit/tests/rewrite/oldSlugRedirect.php       2021-03-01 18:42:49 UTC (rev 50463)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -32,7 +32,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public function tearDown() {
</span><span class="cx" style="display: block; padding: 0 10px">                $this->old_slug_redirect_url = null;
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                remove_filter( 'old_slug_redirect_url', array( $this, 'filter_old_slug_redirect_url' ), 10 );
</del><span class="cx" style="display: block; padding: 0 10px">                 parent::tearDown();
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span></span></pre></div>
<a id="trunktestsphpunittestsrewriterewriteTagsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/rewrite/rewriteTags.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/rewrite/rewriteTags.php 2021-03-01 16:56:08 UTC (rev 50462)
+++ trunk/tests/phpunit/tests/rewrite/rewriteTags.php   2021-03-01 18:42:49 UTC (rev 50463)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -7,14 +7,12 @@
</span><span class="cx" style="display: block; padding: 0 10px">        protected $rewritecode;
</span><span class="cx" style="display: block; padding: 0 10px">        protected $rewritereplace;
</span><span class="cx" style="display: block; padding: 0 10px">        protected $queryreplace;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        protected $wp_rewrite;
</del><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        public function setUp() {
</span><span class="cx" style="display: block; padding: 0 10px">                global $wp_rewrite;
</span><span class="cx" style="display: block; padding: 0 10px">                parent::setUp();
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->wp_rewrite = $wp_rewrite;
-               $wp_rewrite       = new WP_Rewrite();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $wp_rewrite = new WP_Rewrite();
</ins><span class="cx" style="display: block; padding: 0 10px">                 $wp_rewrite->init();
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $this->rewritecode    = $wp_rewrite->rewritecode;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -22,11 +20,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $this->queryreplace   = $wp_rewrite->queryreplace;
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        public function tearDown() {
-               global $wp_rewrite;
-               $wp_rewrite = $this->wp_rewrite;
-       }
-
</del><span class="cx" style="display: block; padding: 0 10px">         public function _invalid_rewrite_tags() {
</span><span class="cx" style="display: block; padding: 0 10px">                return array(
</span><span class="cx" style="display: block; padding: 0 10px">                        array( 'foo', 'bar' ),
</span></span></pre></div>
<a id="trunktestsphpunitteststhemeWPThemephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/theme/WPTheme.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/theme/WPTheme.php       2021-03-01 16:56:08 UTC (rev 50462)
+++ trunk/tests/phpunit/tests/theme/WPTheme.php 2021-03-01 18:42:49 UTC (rev 50463)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -20,9 +20,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        function tearDown() {
</span><span class="cx" style="display: block; padding: 0 10px">                $GLOBALS['wp_theme_directories'] = $this->orig_theme_dir;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                remove_filter( 'theme_root', array( $this, '_theme_root' ) );
-               remove_filter( 'stylesheet_root', array( $this, '_theme_root' ) );
-               remove_filter( 'template_root', array( $this, '_theme_root' ) );
</del><span class="cx" style="display: block; padding: 0 10px">                 wp_clean_themes_cache();
</span><span class="cx" style="display: block; padding: 0 10px">                unset( $GLOBALS['wp_themes'] );
</span><span class="cx" style="display: block; padding: 0 10px">                parent::tearDown();
</span></span></pre></div>
<a id="trunktestsphpunitteststhemethemeDirphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/theme/themeDir.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/theme/themeDir.php      2021-03-01 16:56:08 UTC (rev 50462)
+++ trunk/tests/phpunit/tests/theme/themeDir.php        2021-03-01 18:42:49 UTC (rev 50463)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -26,9 +26,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        function tearDown() {
</span><span class="cx" style="display: block; padding: 0 10px">                $GLOBALS['wp_theme_directories'] = $this->orig_theme_dir;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                remove_filter( 'theme_root', array( $this, '_theme_root' ) );
-               remove_filter( 'stylesheet_root', array( $this, '_theme_root' ) );
-               remove_filter( 'template_root', array( $this, '_theme_root' ) );
</del><span class="cx" style="display: block; padding: 0 10px">                 wp_clean_themes_cache();
</span><span class="cx" style="display: block; padding: 0 10px">                unset( $GLOBALS['wp_themes'] );
</span><span class="cx" style="display: block; padding: 0 10px">                parent::tearDown();
</span></span></pre></div>
<a id="trunktestsphpunittestsuserauthorphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/user/author.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/user/author.php 2021-03-01 16:56:08 UTC (rev 50462)
+++ trunk/tests/phpunit/tests/user/author.php   2021-03-01 18:42:49 UTC (rev 50463)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -39,11 +39,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                setup_postdata( get_post( self::$post_id ) );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        function tearDown() {
-               wp_reset_postdata();
-               parent::tearDown();
-       }
-
</del><span class="cx" style="display: block; padding: 0 10px">         function test_get_the_author() {
</span><span class="cx" style="display: block; padding: 0 10px">                $author_name = get_the_author();
</span><span class="cx" style="display: block; padding: 0 10px">                $user        = new WP_User( self::$author_id );
</span></span></pre></div>
<a id="trunktestsphpunittestsusercountUserPostsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/user/countUserPosts.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/user/countUserPosts.php 2021-03-01 16:56:08 UTC (rev 50462)
+++ trunk/tests/phpunit/tests/user/countUserPosts.php   2021-03-01 18:42:49 UTC (rev 50463)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -58,11 +58,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                register_post_type( 'wptests_pt' );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        public function tearDown() {
-               _unregister_post_type( 'wptests_pt' );
-               parent::tearDown();
-       }
-
</del><span class="cx" style="display: block; padding: 0 10px">         public function test_count_user_posts_post_type_should_default_to_post() {
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertEquals( 4, count_user_posts( self::$user_id ) );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span></span></pre></div>
<a id="trunktestsphpunittestsuserwpSendUserRequestphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/user/wpSendUserRequest.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/user/wpSendUserRequest.php      2021-03-01 16:56:08 UTC (rev 50462)
+++ trunk/tests/phpunit/tests/user/wpSendUserRequest.php        2021-03-01 18:42:49 UTC (rev 50463)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -76,7 +76,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">         * @since 4.9.9
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function tearDown() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                delete_option( 'WPLANG' );
</del><span class="cx" style="display: block; padding: 0 10px">                 reset_phpmailer_instance();
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                unset( $GLOBALS['locale'] );
</span></span></pre></div>
<a id="trunktestsphpunittestsxmlrpcwpgetPostTypephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/xmlrpc/wp/getPostType.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/xmlrpc/wp/getPostType.php       2021-03-01 16:56:08 UTC (rev 50462)
+++ trunk/tests/phpunit/tests/xmlrpc/wp/getPostType.php 2021-03-01 18:42:49 UTC (rev 50463)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -23,12 +23,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                register_post_type( $this->cpt_name, $this->cpt_args );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        function tearDown() {
-               _unregister_post_type( $this->cpt_name );
-
-               parent::tearDown();
-       }
-
</del><span class="cx" style="display: block; padding: 0 10px">         function test_invalid_username_password() {
</span><span class="cx" style="display: block; padding: 0 10px">                $result = $this->myxmlrpcserver->wp_getPostType( array( 1, 'username', 'password', 'post' ) );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertIXRError( $result );
</span></span></pre></div>
<a id="trunktestsphpunittestsxmlrpcwpgetUserphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/xmlrpc/wp/getUser.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/xmlrpc/wp/getUser.php   2021-03-01 16:56:08 UTC (rev 50462)
+++ trunk/tests/phpunit/tests/xmlrpc/wp/getUser.php     2021-03-01 18:42:49 UTC (rev 50463)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -17,13 +17,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        function tearDown() {
-               if ( is_multisite() ) {
-                       revoke_super_admin( $this->administrator_id );
-               }
-               parent::tearDown();
-       }
-
</del><span class="cx" style="display: block; padding: 0 10px">         function test_invalid_username_password() {
</span><span class="cx" style="display: block; padding: 0 10px">                $result = $this->myxmlrpcserver->wp_getUser( array( 1, 'username', 'password', 1 ) );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertIXRError( $result );
</span></span></pre>
</div>
</div>

</body>
</html>