<!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>[50450] trunk/tests/phpunit: Build/Test Tools: Fix and standardise calls to the `tearDown()` method in the test suite.</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/50450">50450</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/50450","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-02-27 17:08:26 +0000 (Sat, 27 Feb 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: Fix and standardise calls to the `tearDown()` method in the test suite.

The parent method should be called after any test-specific teardown.

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

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunktestsphpunitincludestestcaseajaxphp">trunk/tests/phpunit/includes/testcase-ajax.php</a></li>
<li><a href="#trunktestsphpunitincludestestcaseblocksupportsphp">trunk/tests/phpunit/includes/testcase-block-supports.php</a></li>
<li><a href="#trunktestsphpunitincludestestcaserestcontrollerphp">trunk/tests/phpunit/includes/testcase-rest-controller.php</a></li>
<li><a href="#trunktestsphpunittestsajaxCustomizeManagerphp">trunk/tests/phpunit/tests/ajax/CustomizeManager.php</a></li>
<li><a href="#trunktestsphpunittestsauthphp">trunk/tests/phpunit/tests/auth.php</a></li>
<li><a href="#trunktestsphpunittestsblocksblockcontextphp">trunk/tests/phpunit/tests/blocks/block-context.php</a></li>
<li><a href="#trunktestsphpunittestsblocksblocklistphp">trunk/tests/phpunit/tests/blocks/block-list.php</a></li>
<li><a href="#trunktestsphpunittestsblocksblocktyperegistryphp">trunk/tests/phpunit/tests/blocks/block-type-registry.php</a></li>
<li><a href="#trunktestsphpunittestsblocksblockphp">trunk/tests/phpunit/tests/blocks/block.php</a></li>
<li><a href="#trunktestsphpunittestsblocksregisterphp">trunk/tests/phpunit/tests/blocks/register.php</a></li>
<li><a href="#trunktestsphpunittestsblocksrenderphp">trunk/tests/phpunit/tests/blocks/render.php</a></li>
<li><a href="#trunktestsphpunittestscustomizecustomcsssettingphp">trunk/tests/phpunit/tests/customize/custom-css-setting.php</a></li>
<li><a href="#trunktestsphpunittestsdbdeltaphp">trunk/tests/phpunit/tests/dbdelta.php</a></li>
<li><a href="#trunktestsphpunittestsformattingExcerptRemoveBlocksphp">trunk/tests/phpunit/tests/formatting/ExcerptRemoveBlocks.php</a></li>
<li><a href="#trunktestsphpunittestsfunctionsdeprecatedphp">trunk/tests/phpunit/tests/functions/deprecated.php</a></li>
<li><a href="#trunktestsphpunittestsfunctionsrefererphp">trunk/tests/phpunit/tests/functions/referer.php</a></li>
<li><a href="#trunktestsphpunittestsmenuwpAjaxMenuQuickSearchphp">trunk/tests/phpunit/tests/menu/wpAjaxMenuQuickSearch.php</a></li>
<li><a href="#trunktestsphpunittestsmultisitephp">trunk/tests/phpunit/tests/multisite.php</a></li>
<li><a href="#trunktestsphpunittestsoembedcontrollerphp">trunk/tests/phpunit/tests/oembed/controller.php</a></li>
<li><a href="#trunktestsphpunittestsquerycommentCountphp">trunk/tests/phpunit/tests/query/commentCount.php</a></li>
<li><a href="#trunktestsphpunittestsrestapirestapplicationpasswordscontrollerphp">trunk/tests/phpunit/tests/rest-api/rest-application-passwords-controller.php</a></li>
<li><a href="#trunktestsphpunittestsrestapirestattachmentscontrollerphp">trunk/tests/phpunit/tests/rest-api/rest-attachments-controller.php</a></li>
<li><a href="#trunktestsphpunittestsrestapirestcontrollerphp">trunk/tests/phpunit/tests/rest-api/rest-controller.php</a></li>
<li><a href="#trunktestsphpunittestsrestapirestpluginscontrollerphp">trunk/tests/phpunit/tests/rest-api/rest-plugins-controller.php</a></li>
<li><a href="#trunktestsphpunittestsrestapirestschemasetupphp">trunk/tests/phpunit/tests/rest-api/rest-schema-setup.php</a></li>
<li><a href="#trunktestsphpunittestsrestapirestsettingscontrollerphp">trunk/tests/phpunit/tests/rest-api/rest-settings-controller.php</a></li>
<li><a href="#trunktestsphpunittestsrestapiresttaxonomiescontrollerphp">trunk/tests/phpunit/tests/rest-api/rest-taxonomies-controller.php</a></li>
<li><a href="#trunktestsphpunittestsrewriteoldDateRedirectphp">trunk/tests/phpunit/tests/rewrite/oldDateRedirect.php</a></li>
<li><a href="#trunktestsphpunittestsrewriteoldSlugRedirectphp">trunk/tests/phpunit/tests/rewrite/oldSlugRedirect.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunktestsphpunitincludestestcaseajaxphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/includes/testcase-ajax.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/includes/testcase-ajax.php    2021-02-27 16:54:52 UTC (rev 50449)
+++ trunk/tests/phpunit/includes/testcase-ajax.php      2021-02-27 17:08:26 UTC (rev 50450)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -157,7 +157,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">         * Resets $_POST, removes the wp_die() override, restores error reporting.
</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">-                parent::tearDown();
</del><span class="cx" style="display: block; padding: 0 10px">                 $_POST = array();
</span><span class="cx" style="display: block; padding: 0 10px">                $_GET  = array();
</span><span class="cx" style="display: block; padding: 0 10px">                unset( $GLOBALS['post'] );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -166,6 +165,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                remove_action( 'clear_auth_cookie', array( $this, 'logout' ) );
</span><span class="cx" style="display: block; padding: 0 10px">                error_reporting( $this->_error_level );
</span><span class="cx" style="display: block; padding: 0 10px">                set_current_screen( 'front' );
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                parent::tearDown();
</ins><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></span></pre></div>
<a id="trunktestsphpunitincludestestcaseblocksupportsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/includes/testcase-block-supports.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/includes/testcase-block-supports.php  2021-02-27 16:54:52 UTC (rev 50449)
+++ trunk/tests/phpunit/includes/testcase-block-supports.php    2021-02-27 17:08:26 UTC (rev 50450)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -19,12 +19,12 @@
</span><span class="cx" style="display: block; padding: 0 10px">         * Tear down each test method.
</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">-                parent::tearDown();
-
</del><span class="cx" style="display: block; padding: 0 10px">                 while ( ! empty( $this->registered_block_names ) ) {
</span><span class="cx" style="display: block; padding: 0 10px">                        $block_name = array_pop( $this->registered_block_names );
</span><span class="cx" style="display: block; padding: 0 10px">                        unregister_block_type( $block_name );
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+               parent::tearDown();
</ins><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></span></pre></div>
<a id="trunktestsphpunitincludestestcaserestcontrollerphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/includes/testcase-rest-controller.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/includes/testcase-rest-controller.php 2021-02-27 16:54:52 UTC (rev 50449)
+++ trunk/tests/phpunit/includes/testcase-rest-controller.php   2021-02-27 17:08:26 UTC (rev 50450)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -14,11 +14,11 @@
</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">-                parent::tearDown();
</del><span class="cx" style="display: block; padding: 0 10px">                 remove_filter( 'rest_url', array( $this, 'test_rest_url_for_leading_slash' ), 10, 2 );
</span><span class="cx" style="display: block; padding: 0 10px">                /** @var WP_REST_Server $wp_rest_server */
</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><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                parent::tearDown();
</ins><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">        abstract public function test_register_routes();
</span></span></pre></div>
<a id="trunktestsphpunittestsajaxCustomizeManagerphp"></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/ajax/CustomizeManager.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/ajax/CustomizeManager.php       2021-02-27 16:54:52 UTC (rev 50449)
+++ trunk/tests/phpunit/tests/ajax/CustomizeManager.php 2021-02-27 17:08:26 UTC (rev 50450)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -59,8 +59,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">         * Tear down.
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function tearDown() {
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                $_REQUEST = array();
</ins><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">-                $_REQUEST = array();
</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">        /**
</span></span></pre></div>
<a id="trunktestsphpunittestsauthphp"></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/auth.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/auth.php        2021-02-27 16:54:52 UTC (rev 50449)
+++ trunk/tests/phpunit/tests/auth.php  2021-02-27 17:08:26 UTC (rev 50450)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -43,10 +43,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">-                parent::tearDown();
-
</del><span class="cx" style="display: block; padding: 0 10px">                 // Cleanup all the global state.
</span><span class="cx" style="display: block; padding: 0 10px">                unset( $_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW'], $GLOBALS['wp_rest_application_password_status'], $GLOBALS['wp_rest_application_password_uuid'] );
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+               parent::tearDown();
</ins><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 test_auth_cookie_valid() {
</span></span></pre></div>
<a id="trunktestsphpunittestsblocksblockcontextphp"></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/blocks/block-context.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/blocks/block-context.php        2021-02-27 16:54:52 UTC (rev 50449)
+++ trunk/tests/phpunit/tests/blocks/block-context.php  2021-02-27 17:08:26 UTC (rev 50450)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -44,12 +44,12 @@
</span><span class="cx" style="display: block; padding: 0 10px">         * Tear down each test method.
</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">-                parent::tearDown();
-
</del><span class="cx" style="display: block; padding: 0 10px">                 while ( ! empty( $this->registered_block_names ) ) {
</span><span class="cx" style="display: block; padding: 0 10px">                        $block_name = array_pop( $this->registered_block_names );
</span><span class="cx" style="display: block; padding: 0 10px">                        unregister_block_type( $block_name );
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+               parent::tearDown();
</ins><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></span></pre></div>
<a id="trunktestsphpunittestsblocksblocklistphp"></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/blocks/block-list.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/blocks/block-list.php   2021-02-27 16:54:52 UTC (rev 50449)
+++ trunk/tests/phpunit/tests/blocks/block-list.php     2021-02-27 17:08:26 UTC (rev 50450)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -37,9 +37,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">         * Tear down each test method.
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function tearDown() {
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                $this->registry = null;
+
</ins><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">-
-               $this->registry = null;
</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">        /**
</span></span></pre></div>
<a id="trunktestsphpunittestsblocksblocktyperegistryphp"></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/blocks/block-type-registry.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/blocks/block-type-registry.php  2021-02-27 16:54:52 UTC (rev 50449)
+++ trunk/tests/phpunit/tests/blocks/block-type-registry.php    2021-02-27 17:08:26 UTC (rev 50450)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -41,9 +41,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">         * @since 5.0.0
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function tearDown() {
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                $this->registry = null;
+
</ins><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">-
-               $this->registry = null;
</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">        /**
</span></span></pre></div>
<a id="trunktestsphpunittestsblocksblockphp"></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/blocks/block.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/blocks/block.php        2021-02-27 16:54:52 UTC (rev 50449)
+++ trunk/tests/phpunit/tests/blocks/block.php  2021-02-27 17:08:26 UTC (rev 50450)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -36,9 +36,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">         * Tear down each test method.
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function tearDown() {
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                $this->registry = null;
+
</ins><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">-
-               $this->registry = null;
</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">        function filter_render_block( $content, $parsed_block ) {
</span></span></pre></div>
<a id="trunktestsphpunittestsblocksregisterphp"></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/blocks/register.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/blocks/register.php     2021-02-27 16:54:52 UTC (rev 50449)
+++ trunk/tests/phpunit/tests/blocks/register.php       2021-02-27 17:08:26 UTC (rev 50450)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -58,8 +58,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">         * @since 5.0.0
</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">-                parent::tearDown();
-
</del><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"> 
</span><span class="cx" style="display: block; padding: 0 10px">                foreach ( array( 'core/test-static', 'core/test-dynamic', 'tests/notice' ) as $block_name ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -67,6 +65,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                $registry->unregister( $block_name );
</span><span class="cx" style="display: block; padding: 0 10px">                        }
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+               parent::tearDown();
</ins><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></span></pre></div>
<a id="trunktestsphpunittestsblocksrenderphp"></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/blocks/render.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/blocks/render.php       2021-02-27 16:54:52 UTC (rev 50449)
+++ trunk/tests/phpunit/tests/blocks/render.php 2021-02-27 17:08:26 UTC (rev 50450)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -38,8 +38,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">         * @since 5.0.0
</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">-                parent::tearDown();
-
</del><span class="cx" style="display: block; padding: 0 10px">                 $this->test_block_instance_number = 0;
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $registry = WP_Block_Type_Registry::get_instance();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -49,6 +47,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                if ( $registry->is_registered( 'core/dynamic' ) ) {
</span><span class="cx" style="display: block; padding: 0 10px">                        $registry->unregister( 'core/dynamic' );
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+               parent::tearDown();
</ins><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></span></pre></div>
<a id="trunktestsphpunittestscustomizecustomcsssettingphp"></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/customize/custom-css-setting.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/customize/custom-css-setting.php        2021-02-27 16:54:52 UTC (rev 50449)
+++ trunk/tests/phpunit/tests/customize/custom-css-setting.php  2021-02-27 17:08:26 UTC (rev 50450)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -55,8 +55,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">         * Tear down the test case.
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        function tearDown() {
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                $this->setting = null;
</ins><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">-                $this->setting = null;
</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">        /**
</span></span></pre></div>
<a id="trunktestsphpunittestsdbdeltaphp"></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/dbdelta.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/dbdelta.php     2021-02-27 16:54:52 UTC (rev 50449)
+++ trunk/tests/phpunit/tests/dbdelta.php       2021-02-27 17:08:26 UTC (rev 50450)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -93,6 +93,7 @@
</span><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><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                // This has to be called after the parent `tearDown()` method.
</ins><span class="cx" style="display: block; padding: 0 10px">                 $wpdb->query( "DROP TABLE IF EXISTS {$wpdb->prefix}dbdelta_test" );
</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="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-02-27 16:54:52 UTC (rev 50449)
+++ trunk/tests/phpunit/tests/formatting/ExcerptRemoveBlocks.php        2021-02-27 17:08:26 UTC (rev 50450)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -81,10 +81,11 @@
</span><span class="cx" style="display: block; padding: 0 10px">         * @since 5.2.0
</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">-                parent::tearDown();
</del><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><span class="cx" style="display: block; padding: 0 10px">                wp_delete_post( self::$post_id, true );
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+               parent::tearDown();
</ins><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></span></pre></div>
<a id="trunktestsphpunittestsfunctionsdeprecatedphp"></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/deprecated.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/functions/deprecated.php        2021-02-27 16:54:52 UTC (rev 50449)
+++ trunk/tests/phpunit/tests/functions/deprecated.php  2021-02-27 17:08:26 UTC (rev 50450)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -53,7 +53,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        /**
</span><span class="cx" style="display: block; padding: 0 10px">         * Tears down the test fixture.
</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() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ public function tearDown() {
</ins><span class="cx" style="display: block; padding: 0 10px">                 remove_action( 'deprecated_function_run', array( $this, 'deprecated_function' ), 10, 3 );
</span><span class="cx" style="display: block; padding: 0 10px">                remove_action( 'deprecated_function_trigger_error', '__return_false' );
</span><span class="cx" style="display: block; padding: 0 10px">                remove_action( 'deprecated_argument_run', array( $this, 'deprecated_argument' ), 10, 3 );
</span></span></pre></div>
<a id="trunktestsphpunittestsfunctionsrefererphp"></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/referer.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/functions/referer.php   2021-02-27 16:54:52 UTC (rev 50449)
+++ trunk/tests/phpunit/tests/functions/referer.php     2021-02-27 17:08:26 UTC (rev 50450)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -18,11 +18,11 @@
</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">-                parent::tearDown();
-
</del><span class="cx" style="display: block; padding: 0 10px">                 $_SERVER['HTTP_REFERER']      = '';
</span><span class="cx" style="display: block; padding: 0 10px">                $_SERVER['REQUEST_URI']       = '';
</span><span class="cx" style="display: block; padding: 0 10px">                $_REQUEST['_wp_http_referer'] = '';
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+               parent::tearDown();
</ins><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 _fake_subfolder_install() {
</span></span></pre></div>
<a id="trunktestsphpunittestsmenuwpAjaxMenuQuickSearchphp"></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/menu/wpAjaxMenuQuickSearch.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/menu/wpAjaxMenuQuickSearch.php  2021-02-27 16:54:52 UTC (rev 50449)
+++ trunk/tests/phpunit/tests/menu/wpAjaxMenuQuickSearch.php    2021-02-27 17:08:26 UTC (rev 50450)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -27,8 +27,8 @@
</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">                global $current_screen;
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                $current_screen = $this->current_screen;
</ins><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">-                $current_screen = $this->current_screen;
</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">        /**
</span></span></pre></div>
<a id="trunktestsphpunittestsmultisitephp"></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.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/multisite.php   2021-02-27 16:54:52 UTC (rev 50449)
+++ trunk/tests/phpunit/tests/multisite.php     2021-02-27 17:08:26 UTC (rev 50450)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -18,8 +18,8 @@
</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">                        global $wpdb;
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                        $wpdb->suppress_errors( $this->suppress );
</ins><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">-                        $wpdb->suppress_errors( $this->suppress );
</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">                function test_wpmu_log_new_registrations() {
</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-02-27 16:54:52 UTC (rev 50449)
+++ trunk/tests/phpunit/tests/oembed/controller.php     2021-02-27 17:08:26 UTC (rev 50450)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -60,7 +60,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">-                parent::tearDown();
</del><span class="cx" style="display: block; padding: 0 10px">                 /** @var WP_REST_Server $wp_rest_server */
</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="lines" style="display: block; padding: 0 10px; color: #888">@@ -67,6 +66,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                remove_filter( 'pre_http_request', array( $this, 'mock_embed_request' ), 10 );
</span><span class="cx" style="display: block; padding: 0 10px">                remove_filter( 'oembed_result', array( $this, 'filter_oembed_result' ), 10 );
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                parent::tearDown();
</ins><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></span></pre></div>
<a id="trunktestsphpunittestsquerycommentCountphp"></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/commentCount.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/query/commentCount.php  2021-02-27 16:54:52 UTC (rev 50449)
+++ trunk/tests/phpunit/tests/query/commentCount.php    2021-02-27 17:08:26 UTC (rev 50450)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -14,8 +14,8 @@
</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><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                unset( $this->q );
</ins><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">-                unset( $this->q );
</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="trunktestsphpunittestsrestapirestapplicationpasswordscontrollerphp"></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-application-passwords-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-application-passwords-controller.php      2021-02-27 16:54:52 UTC (rev 50449)
+++ trunk/tests/phpunit/tests/rest-api/rest-application-passwords-controller.php        2021-02-27 17:08:26 UTC (rev 50450)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -70,8 +70,8 @@
</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><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                unset( $_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW'], $GLOBALS['wp_rest_application_password_status'], $GLOBALS['wp_rest_application_password_uuid'] );
</ins><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">-                unset( $_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW'], $GLOBALS['wp_rest_application_password_status'], $GLOBALS['wp_rest_application_password_uuid'] );
</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">        /**
</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-02-27 16:54:52 UTC (rev 50449)
+++ trunk/tests/phpunit/tests/rest-api/rest-attachments-controller.php  2021-02-27 17:08:26 UTC (rev 50450)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -88,8 +88,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">-                parent::tearDown();
-
</del><span class="cx" style="display: block; padding: 0 10px">                 if ( file_exists( $this->test_file ) ) {
</span><span class="cx" style="display: block; padding: 0 10px">                        unlink( $this->test_file );
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -107,6 +105,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        WP_Image_Editor_Mock::$edit_return = array();
</span><span class="cx" style="display: block; padding: 0 10px">                        WP_Image_Editor_Mock::$size_return = null;
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+               parent::tearDown();
</ins><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 test_register_routes() {
</span></span></pre></div>
<a id="trunktestsphpunittestsrestapirestcontrollerphp"></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-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-controller.php    2021-02-27 16:54:52 UTC (rev 50449)
+++ trunk/tests/phpunit/tests/rest-api/rest-controller.php      2021-02-27 17:08:26 UTC (rev 50450)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -53,10 +53,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">-                parent::tearDown();
-
</del><span class="cx" style="display: block; padding: 0 10px">                 global $wp_rest_additional_fields;
</span><span class="cx" style="display: block; padding: 0 10px">                $wp_rest_additional_fields = array();
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+               parent::tearDown();
</ins><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 test_validate_schema_type_integer() {
</span></span></pre></div>
<a id="trunktestsphpunittestsrestapirestpluginscontrollerphp"></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-plugins-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-plugins-controller.php    2021-02-27 16:54:52 UTC (rev 50449)
+++ trunk/tests/phpunit/tests/rest-api/rest-plugins-controller.php      2021-02-27 17:08:26 UTC (rev 50450)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -83,11 +83,11 @@
</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">-                parent::tearDown();
-
</del><span class="cx" style="display: block; padding: 0 10px">                 if ( file_exists( WP_PLUGIN_DIR . '/test-plugin/test-plugin.php' ) ) {
</span><span class="cx" style="display: block; padding: 0 10px">                        $this->rmdir( WP_PLUGIN_DIR . '/test-plugin' );
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+               parent::tearDown();
</ins><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></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-02-27 16:54:52 UTC (rev 50449)
+++ trunk/tests/phpunit/tests/rest-api/rest-schema-setup.php    2021-02-27 17:08:26 UTC (rev 50450)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -27,13 +27,12 @@
</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">-                parent::tearDown();
-
</del><span class="cx" style="display: block; padding: 0 10px">                 /** @var WP_REST_Server $wp_rest_server */
</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><span class="cx" style="display: block; padding: 0 10px">                remove_filter( 'pre_http_request', array( $this, 'mock_embed_request' ), 10, 3 );
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                parent::tearDown();
</ins><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 mock_embed_request( $preempt, $r, $url ) {
</span></span></pre></div>
<a id="trunktestsphpunittestsrestapirestsettingscontrollerphp"></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-settings-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-settings-controller.php   2021-02-27 16:54:52 UTC (rev 50449)
+++ trunk/tests/phpunit/tests/rest-api/rest-settings-controller.php     2021-02-27 17:08:26 UTC (rev 50450)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -39,8 +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">        public function tearDown() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                parent::tearDown();
-
</del><span class="cx" style="display: block; padding: 0 10px">                 $settings_to_unregister = array(
</span><span class="cx" style="display: block; padding: 0 10px">                        'mycustomsetting',
</span><span class="cx" style="display: block; padding: 0 10px">                        'mycustomsetting1',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -55,6 +53,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                unregister_setting( 'somegroup', $setting );
</span><span class="cx" style="display: block; padding: 0 10px">                        }
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+               parent::tearDown();
</ins><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 test_register_routes() {
</span></span></pre></div>
<a id="trunktestsphpunittestsrestapiresttaxonomiescontrollerphp"></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-taxonomies-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-taxonomies-controller.php 2021-02-27 16:54:52 UTC (rev 50449)
+++ trunk/tests/phpunit/tests/rest-api/rest-taxonomies-controller.php   2021-02-27 17:08:26 UTC (rev 50450)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -232,10 +232,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertArrayHasKey( 'rest_base', $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();
-       }
-
</del><span class="cx" style="display: block; padding: 0 10px">         /**
</span><span class="cx" style="display: block; padding: 0 10px">         * Utility function for use in get_public_taxonomies
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span></span></pre></div>
<a id="trunktestsphpunittestsrewriteoldDateRedirectphp"></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/oldDateRedirect.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/rewrite/oldDateRedirect.php     2021-02-27 16:54:52 UTC (rev 50449)
+++ trunk/tests/phpunit/tests/rewrite/oldDateRedirect.php       2021-02-27 17:08:26 UTC (rev 50450)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -42,9 +42,9 @@
</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><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                $this->old_date_redirect_url = null;
+
</ins><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">-
-               $this->old_date_redirect_url = null;
</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 function test_old_date_redirect() {
</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-02-27 16:54:52 UTC (rev 50449)
+++ trunk/tests/phpunit/tests/rewrite/oldSlugRedirect.php       2021-02-27 17:08:26 UTC (rev 50450)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -30,11 +30,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">-                parent::tearDown();
-
</del><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><span class="cx" style="display: block; padding: 0 10px">                remove_filter( 'old_slug_redirect_url', array( $this, 'filter_old_slug_redirect_url' ), 10 );
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                parent::tearDown();
</ins><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 test_old_slug_redirect() {
</span></span></pre>
</div>
</div>

</body>
</html>