<!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>[52389] trunk/tests/phpunit/tests: Build/Test Tools: Reduce the use of unnecessary randomness in tests.</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/52389">52389</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/52389","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-12-19 13:42:37 +0000 (Sun, 19 Dec 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: Reduce the use of unnecessary randomness in tests.

This increases the overall reliability of the tests.

Props johnillo

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

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunktestsphpunittestsactionsphp">trunk/tests/phpunit/tests/actions.php</a></li>
<li><a href="#trunktestsphpunittestsadminincludesPluginphp">trunk/tests/phpunit/tests/admin/includesPlugin.php</a></li>
<li><a href="#trunktestsphpunittestscronphp">trunk/tests/phpunit/tests/cron.php</a></li>
<li><a href="#trunktestsphpunittestsdatexmlrpcphp">trunk/tests/phpunit/tests/date/xmlrpc.php</a></li>
<li><a href="#trunktestsphpunittestsfilephp">trunk/tests/phpunit/tests/file.php</a></li>
<li><a href="#trunktestsphpunittestshooksaddFilterphp">trunk/tests/phpunit/tests/hooks/addFilter.php</a></li>
<li><a href="#trunktestsphpunittestshooksapplyFiltersphp">trunk/tests/phpunit/tests/hooks/applyFilters.php</a></li>
<li><a href="#trunktestsphpunittestshooksdoActionphp">trunk/tests/phpunit/tests/hooks/doAction.php</a></li>
<li><a href="#trunktestsphpunittestshooksdoAllHookphp">trunk/tests/phpunit/tests/hooks/doAllHook.php</a></li>
<li><a href="#trunktestsphpunittestshookshasFilterphp">trunk/tests/phpunit/tests/hooks/hasFilter.php</a></li>
<li><a href="#trunktestsphpunittestshookshasFiltersphp">trunk/tests/phpunit/tests/hooks/hasFilters.php</a></li>
<li><a href="#trunktestsphpunittestshooksiteratorphp">trunk/tests/phpunit/tests/hooks/iterator.php</a></li>
<li><a href="#trunktestsphpunittestshookspreinitHooksphp">trunk/tests/phpunit/tests/hooks/preinitHooks.php</a></li>
<li><a href="#trunktestsphpunittestshooksremoveAllFiltersphp">trunk/tests/phpunit/tests/hooks/removeAllFilters.php</a></li>
<li><a href="#trunktestsphpunittestshooksremoveFilterphp">trunk/tests/phpunit/tests/hooks/removeFilter.php</a></li>
<li><a href="#trunktestsphpunittestsimageintermediateSizephp">trunk/tests/phpunit/tests/image/intermediateSize.php</a></li>
<li><a href="#trunktestsphpunittestspostattachmentsphp">trunk/tests/phpunit/tests/post/attachments.php</a></li>
<li><a href="#trunktestsphpunittestspostmetaphp">trunk/tests/phpunit/tests/post/meta.php</a></li>
<li><a href="#trunktestsphpunittestspostnavmenuphp">trunk/tests/phpunit/tests/post/nav-menu.php</a></li>
<li><a href="#trunktestsphpunittestspostqueryphp">trunk/tests/phpunit/tests/post/query.php</a></li>
<li><a href="#trunktestsphpunittestspostrevisionsphp">trunk/tests/phpunit/tests/post/revisions.php</a></li>
<li><a href="#trunktestsphpunittestsposttypesphp">trunk/tests/phpunit/tests/post/types.php</a></li>
<li><a href="#trunktestsphpunittestspostphp">trunk/tests/phpunit/tests/post.php</a></li>
<li><a href="#trunktestsphpunittestsquerycommentCountphp">trunk/tests/phpunit/tests/query/commentCount.php</a></li>
<li><a href="#trunktestsphpunittestsquerysearchphp">trunk/tests/phpunit/tests/query/search.php</a></li>
<li><a href="#trunktestsphpunittestsquerytaxQueryphp">trunk/tests/phpunit/tests/query/taxQuery.php</a></li>
<li><a href="#trunktestsphpunittestsrestapirestattachmentscontrollerphp">trunk/tests/phpunit/tests/rest-api/rest-attachments-controller.php</a></li>
<li><a href="#trunktestsphpunittestsrestapirestcommentscontrollerphp">trunk/tests/phpunit/tests/rest-api/rest-comments-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="#trunktestsphpunittestsrewritenumericSlugsphp">trunk/tests/phpunit/tests/rewrite/numericSlugs.php</a></li>
<li><a href="#trunktestsphpunittestsrewritephp">trunk/tests/phpunit/tests/rewrite.php</a></li>
<li><a href="#trunktestsphpunitteststaxonomyphp">trunk/tests/phpunit/tests/taxonomy.php</a></li>
<li><a href="#trunktestsphpunitteststermgetTermFieldphp">trunk/tests/phpunit/tests/term/getTermField.php</a></li>
<li><a href="#trunktestsphpunitteststermsplitSharedTermphp">trunk/tests/phpunit/tests/term/splitSharedTerm.php</a></li>
<li><a href="#trunktestsphpunitteststermtermExistsphp">trunk/tests/phpunit/tests/term/termExists.php</a></li>
<li><a href="#trunktestsphpunitteststermwpSetObjectTermsphp">trunk/tests/phpunit/tests/term/wpSetObjectTerms.php</a></li>
<li><a href="#trunktestsphpunitteststermwpTaxonomyphp">trunk/tests/phpunit/tests/term/wpTaxonomy.php</a></li>
<li><a href="#trunktestsphpunitteststermphp">trunk/tests/phpunit/tests/term.php</a></li>
<li><a href="#trunktestsphpunitteststhemephp">trunk/tests/phpunit/tests/theme.php</a></li>
<li><a href="#trunktestsphpunittestsuserauthorphp">trunk/tests/phpunit/tests/user/author.php</a></li>
<li><a href="#trunktestsphpunittestsuserphp">trunk/tests/phpunit/tests/user.php</a></li>
<li><a href="#trunktestsphpunittestsxmlrpcwpeditProfilephp">trunk/tests/phpunit/tests/xmlrpc/wp/editProfile.php</a></li>
<li><a href="#trunktestsphpunittestsxmlrpcwpgetCommentphp">trunk/tests/phpunit/tests/xmlrpc/wp/getComment.php</a></li>
<li><a href="#trunktestsphpunittestsxmlrpcwpgetPostphp">trunk/tests/phpunit/tests/xmlrpc/wp/getPost.php</a></li>
<li><a href="#trunktestsphpunittestsxmlrpcwpnewCommentphp">trunk/tests/phpunit/tests/xmlrpc/wp/newComment.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunktestsphpunittestsactionsphp"></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/actions.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/actions.php     2021-12-18 21:44:57 UTC (rev 52388)
+++ trunk/tests/phpunit/tests/actions.php       2021-12-19 13:42:37 UTC (rev 52389)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -240,8 +240,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertSame( 1, did_action( $tag1 ) );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertSame( 0, did_action( $tag2 ) );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                // Do action $tag2 a random number of times.
-               $count = rand( 0, 10 );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         // Do action $tag2 10 times.
+               $count = 10;
</ins><span class="cx" style="display: block; padding: 0 10px">                 for ( $i = 0; $i < $count; $i++ ) {
</span><span class="cx" style="display: block; padding: 0 10px">                        do_action( $tag2 );
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span></span></pre></div>
<a id="trunktestsphpunittestsadminincludesPluginphp"></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/admin/includesPlugin.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/admin/includesPlugin.php        2021-12-18 21:44:57 UTC (rev 52388)
+++ trunk/tests/phpunit/tests/admin/includesPlugin.php  2021-12-19 13:42:37 UTC (rev 52389)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -487,11 +487,12 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $p2 = $this->_create_plugin( "<?php\n//Test", 'not-a-dropin.php', WP_CONTENT_DIR );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $dropins = get_dropins();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertSame( array( 'advanced-cache.php' ), array_keys( $dropins ) );
</del><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                unlink( $p1[1] );
</span><span class="cx" style="display: block; padding: 0 10px">                unlink( $p2[1] );
</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->assertSame( array( 'advanced-cache.php' ), array_keys( $dropins ) );
+
</ins><span class="cx" style="display: block; padding: 0 10px">                 // Clean up.
</span><span class="cx" style="display: block; padding: 0 10px">                $this->_restore_drop_ins();
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -509,9 +510,11 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_is_network_only_plugin() {
</span><span class="cx" style="display: block; padding: 0 10px">                $p = $this->_create_plugin( "<?php\n/*\nPlugin Name: test\nNetwork: true" );
</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->assertTrue( is_network_only_plugin( $p[0] ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $network_only = is_network_only_plugin( $p[0] );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                unlink( $p[1] );
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+               $this->assertTrue( $network_only );
</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 class="lines" style="display: block; padding: 0 10px; color: #888">@@ -571,12 +574,14 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $uninstallable_plugins[ $plugin[0] ] = true;
</span><span class="cx" style="display: block; padding: 0 10px">                update_option( 'uninstall_plugins', $uninstallable_plugins );
</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->assertTrue( is_uninstallable_plugin( $plugin[0] ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $is_uninstallable = is_uninstallable_plugin( $plugin[0] );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                unset( $uninstallable_plugins[ $plugin[0] ] );
</span><span class="cx" style="display: block; padding: 0 10px">                update_option( 'uninstall_plugins', $uninstallable_plugins );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                unlink( $plugin[1] );
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+               $this->assertTrue( $is_uninstallable );
</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 class="lines" style="display: block; padding: 0 10px; color: #888">@@ -595,7 +600,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        private function _create_plugin( $data = "<?php\n/*\nPlugin Name: Test\n*/", $filename = false, $dir_path = false ) {
</span><span class="cx" style="display: block; padding: 0 10px">                if ( false === $filename ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        $filename = rand_str() . '.php';
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 $filename = __FUNCTION__ . '.php';
</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">                if ( false === $dir_path ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -602,7 +607,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        $dir_path = WP_PLUGIN_DIR;
</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">-                $full_name = $dir_path . '/' . wp_unique_filename( $dir_path, $filename );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $filename  = wp_unique_filename( $dir_path, $filename );
+               $full_name = $dir_path . '/' . $filename;
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $file = fopen( $full_name, 'w' );
</span><span class="cx" style="display: block; padding: 0 10px">                fwrite( $file, $data );
</span></span></pre></div>
<a id="trunktestsphpunittestscronphp"></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/cron.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/cron.php        2021-12-18 21:44:57 UTC (rev 52388)
+++ trunk/tests/phpunit/tests/cron.php  2021-12-19 13:42:37 UTC (rev 52389)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -270,7 +270,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_unschedule_hook() {
</span><span class="cx" style="display: block; padding: 0 10px">                $hook = __FUNCTION__;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $args = array( rand_str() );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $args = array( 'foo' );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                // Schedule several events with and without arguments.
</span><span class="cx" style="display: block; padding: 0 10px">                wp_schedule_single_event( strtotime( '+1 hour' ), $hook );
</span></span></pre></div>
<a id="trunktestsphpunittestsdatexmlrpcphp"></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/date/xmlrpc.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/date/xmlrpc.php 2021-12-18 21:44:57 UTC (rev 52388)
+++ trunk/tests/phpunit/tests/date/xmlrpc.php   2021-12-19 13:42:37 UTC (rev 52389)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -228,7 +228,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        'comment_author'       => 'Test commenter',
</span><span class="cx" style="display: block; padding: 0 10px">                        'comment_author_url'   => 'http://example.com/',
</span><span class="cx" style="display: block; padding: 0 10px">                        'comment_author_email' => 'example@example.com',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        'comment_content'      => rand_str( 100 ),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 'comment_content'      => 'Hello, world!',
</ins><span class="cx" style="display: block; padding: 0 10px">                         'comment_approved'     => '1',
</span><span class="cx" style="display: block; padding: 0 10px">                );
</span><span class="cx" style="display: block; padding: 0 10px">                $comment_id   = wp_insert_comment( $comment_data );
</span></span></pre></div>
<a id="trunktestsphpunittestsfilephp"></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/file.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/file.php        2021-12-18 21:44:57 UTC (rev 52388)
+++ trunk/tests/phpunit/tests/file.php  2021-12-19 13:42:37 UTC (rev 52389)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -96,8 +96,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        return false;
</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">-                // Write some random contents.
-               $c = rand_str();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         // Write some contents.
+               $c = 'foo';
</ins><span class="cx" style="display: block; padding: 0 10px">                 fwrite( $fp, $c );
</span><span class="cx" style="display: block; padding: 0 10px">                fclose( $fp );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span></span></pre></div>
<a id="trunktestsphpunittestshooksaddFilterphp"></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/hooks/addFilter.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/hooks/addFilter.php     2021-12-18 21:44:57 UTC (rev 52388)
+++ trunk/tests/phpunit/tests/hooks/addFilter.php       2021-12-19 13:42:37 UTC (rev 52389)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -15,8 +15,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $callback      = '__return_null';
</span><span class="cx" style="display: block; padding: 0 10px">                $hook          = new WP_Hook();
</span><span class="cx" style="display: block; padding: 0 10px">                $tag           = __FUNCTION__;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $priority      = rand( 1, 100 );
-               $accepted_args = rand( 1, 100 );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $priority      = 1;
+               $accepted_args = 2;
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $hook->add_filter( $tag, $callback, $priority, $accepted_args );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -30,8 +30,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $callback      = array( $a, 'action' );
</span><span class="cx" style="display: block; padding: 0 10px">                $hook          = new WP_Hook();
</span><span class="cx" style="display: block; padding: 0 10px">                $tag           = __FUNCTION__;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $priority      = rand( 1, 100 );
-               $accepted_args = rand( 1, 100 );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $priority      = 1;
+               $accepted_args = 2;
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $hook->add_filter( $tag, $callback, $priority, $accepted_args );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -44,8 +44,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $callback      = array( 'MockAction', 'action' );
</span><span class="cx" style="display: block; padding: 0 10px">                $hook          = new WP_Hook();
</span><span class="cx" style="display: block; padding: 0 10px">                $tag           = __FUNCTION__;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $priority      = rand( 1, 100 );
-               $accepted_args = rand( 1, 100 );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $priority      = 1;
+               $accepted_args = 2;
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $hook->add_filter( $tag, $callback, $priority, $accepted_args );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</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">                $callback_two  = '__return_false';
</span><span class="cx" style="display: block; padding: 0 10px">                $hook          = new WP_Hook();
</span><span class="cx" style="display: block; padding: 0 10px">                $tag           = __FUNCTION__;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $priority      = rand( 1, 100 );
-               $accepted_args = rand( 1, 100 );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $priority      = 1;
+               $accepted_args = 2;
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $hook->add_filter( $tag, $callback_one, $priority, $accepted_args );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertCount( 1, $hook->callbacks[ $priority ] );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -74,8 +74,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $callback_two  = '__return_false';
</span><span class="cx" style="display: block; padding: 0 10px">                $hook          = new WP_Hook();
</span><span class="cx" style="display: block; padding: 0 10px">                $tag           = __FUNCTION__;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $priority      = rand( 1, 100 );
-               $accepted_args = rand( 1, 100 );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $priority      = 1;
+               $accepted_args = 2;
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $hook->add_filter( $tag, $callback_one, $priority, $accepted_args );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertCount( 1, $hook->callbacks[ $priority ] );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -89,8 +89,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $callback      = '__return_null';
</span><span class="cx" style="display: block; padding: 0 10px">                $hook          = new WP_Hook();
</span><span class="cx" style="display: block; padding: 0 10px">                $tag           = __FUNCTION__;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $priority      = rand( 1, 100 );
-               $accepted_args = rand( 1, 100 );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $priority      = 1;
+               $accepted_args = 2;
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $hook->add_filter( $tag, $callback, $priority, $accepted_args );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertCount( 1, $hook->callbacks[ $priority ] );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -103,8 +103,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $callback      = '__return_null';
</span><span class="cx" style="display: block; padding: 0 10px">                $hook          = new WP_Hook();
</span><span class="cx" style="display: block; padding: 0 10px">                $tag           = __FUNCTION__;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $priority      = rand( 1, 100 );
-               $accepted_args = rand( 1, 100 );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $priority      = 1;
+               $accepted_args = 2;
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $hook->add_filter( $tag, $callback, $priority, $accepted_args );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertCount( 1, $hook->callbacks[ $priority ] );
</span></span></pre></div>
<a id="trunktestsphpunittestshooksapplyFiltersphp"></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/hooks/applyFilters.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/hooks/applyFilters.php  2021-12-18 21:44:57 UTC (rev 52388)
+++ trunk/tests/phpunit/tests/hooks/applyFilters.php    2021-12-19 13:42:37 UTC (rev 52389)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -13,8 +13,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $callback      = array( $a, 'filter' );
</span><span class="cx" style="display: block; padding: 0 10px">                $hook          = new WP_Hook();
</span><span class="cx" style="display: block; padding: 0 10px">                $tag           = __FUNCTION__;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $priority      = rand( 1, 100 );
-               $accepted_args = rand( 1, 100 );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $priority      = 1;
+               $accepted_args = 2;
</ins><span class="cx" style="display: block; padding: 0 10px">                 $arg           = __FUNCTION__ . '_arg';
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $hook->add_filter( $tag, $callback, $priority, $accepted_args );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -30,8 +30,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $callback      = array( $a, 'filter' );
</span><span class="cx" style="display: block; padding: 0 10px">                $hook          = new WP_Hook();
</span><span class="cx" style="display: block; padding: 0 10px">                $tag           = __FUNCTION__;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $priority      = rand( 1, 100 );
-               $accepted_args = rand( 1, 100 );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $priority      = 1;
+               $accepted_args = 2;
</ins><span class="cx" style="display: block; padding: 0 10px">                 $arg           = __FUNCTION__ . '_arg';
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $hook->add_filter( $tag, $callback, $priority, $accepted_args );
</span></span></pre></div>
<a id="trunktestsphpunittestshooksdoActionphp"></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/hooks/doAction.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/hooks/doAction.php      2021-12-18 21:44:57 UTC (rev 52388)
+++ trunk/tests/phpunit/tests/hooks/doAction.php        2021-12-19 13:42:37 UTC (rev 52389)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -21,8 +21,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $callback      = array( $a, 'action' );
</span><span class="cx" style="display: block; padding: 0 10px">                $hook          = new WP_Hook();
</span><span class="cx" style="display: block; padding: 0 10px">                $tag           = __FUNCTION__;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $priority      = rand( 1, 100 );
-               $accepted_args = rand( 1, 100 );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $priority      = 1;
+               $accepted_args = 2;
</ins><span class="cx" style="display: block; padding: 0 10px">                 $arg           = __FUNCTION__ . '_arg';
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $hook->add_filter( $tag, $callback, $priority, $accepted_args );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -36,8 +36,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $callback      = array( $a, 'filter' );
</span><span class="cx" style="display: block; padding: 0 10px">                $hook          = new WP_Hook();
</span><span class="cx" style="display: block; padding: 0 10px">                $tag           = __FUNCTION__;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $priority      = rand( 1, 100 );
-               $accepted_args = rand( 1, 100 );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $priority      = 1;
+               $accepted_args = 2;
</ins><span class="cx" style="display: block; padding: 0 10px">                 $arg           = __FUNCTION__ . '_arg';
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $hook->add_filter( $tag, $callback, $priority, $accepted_args );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -54,8 +54,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $callback_two  = array( $b, 'filter' );
</span><span class="cx" style="display: block; padding: 0 10px">                $hook          = new WP_Hook();
</span><span class="cx" style="display: block; padding: 0 10px">                $tag           = __FUNCTION__;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $priority      = rand( 1, 100 );
-               $accepted_args = rand( 1, 100 );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $priority      = 1;
+               $accepted_args = 2;
</ins><span class="cx" style="display: block; padding: 0 10px">                 $arg           = __FUNCTION__ . '_arg';
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $hook->add_filter( $tag, $callback_one, $priority, $accepted_args );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -73,8 +73,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $callback_two  = array( $b, 'filter' );
</span><span class="cx" style="display: block; padding: 0 10px">                $hook          = new WP_Hook();
</span><span class="cx" style="display: block; padding: 0 10px">                $tag           = __FUNCTION__;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $priority      = rand( 1, 100 );
-               $accepted_args = rand( 1, 100 );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $priority      = 1;
+               $accepted_args = 2;
</ins><span class="cx" style="display: block; padding: 0 10px">                 $arg           = __FUNCTION__ . '_arg';
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $hook->add_filter( $tag, $callback_one, $priority, $accepted_args );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -89,7 +89,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $callback      = array( $this, '_action_callback' );
</span><span class="cx" style="display: block; padding: 0 10px">                $hook          = new WP_Hook();
</span><span class="cx" style="display: block; padding: 0 10px">                $tag           = __FUNCTION__;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $priority      = rand( 1, 100 );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $priority      = 1;
</ins><span class="cx" style="display: block; padding: 0 10px">                 $accepted_args = 0;
</span><span class="cx" style="display: block; padding: 0 10px">                $arg           = __FUNCTION__ . '_arg';
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -103,7 +103,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $callback      = array( $this, '_action_callback' );
</span><span class="cx" style="display: block; padding: 0 10px">                $hook          = new WP_Hook();
</span><span class="cx" style="display: block; padding: 0 10px">                $tag           = __FUNCTION__;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $priority      = rand( 1, 100 );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $priority      = 1;
</ins><span class="cx" style="display: block; padding: 0 10px">                 $accepted_args = 1;
</span><span class="cx" style="display: block; padding: 0 10px">                $arg           = __FUNCTION__ . '_arg';
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -117,7 +117,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $callback      = array( $this, '_action_callback' );
</span><span class="cx" style="display: block; padding: 0 10px">                $hook          = new WP_Hook();
</span><span class="cx" style="display: block; padding: 0 10px">                $tag           = __FUNCTION__;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $priority      = rand( 1, 100 );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $priority      = 100;
</ins><span class="cx" style="display: block; padding: 0 10px">                 $accepted_args = 1000;
</span><span class="cx" style="display: block; padding: 0 10px">                $arg           = __FUNCTION__ . '_arg';
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span></span></pre></div>
<a id="trunktestsphpunittestshooksdoAllHookphp"></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/hooks/doAllHook.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/hooks/doAllHook.php     2021-12-18 21:44:57 UTC (rev 52388)
+++ trunk/tests/phpunit/tests/hooks/doAllHook.php       2021-12-19 13:42:37 UTC (rev 52389)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -13,8 +13,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $callback      = array( $a, 'action' );
</span><span class="cx" style="display: block; padding: 0 10px">                $hook          = new WP_Hook();
</span><span class="cx" style="display: block; padding: 0 10px">                $tag           = 'all';
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $priority      = rand( 1, 100 );
-               $accepted_args = rand( 1, 100 );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $priority      = 1;
+               $accepted_args = 2;
</ins><span class="cx" style="display: block; padding: 0 10px">                 $arg           = 'all_arg';
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $hook->add_filter( $tag, $callback, $priority, $accepted_args );
</span></span></pre></div>
<a id="trunktestsphpunittestshookshasFilterphp"></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/hooks/hasFilter.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/hooks/hasFilter.php     2021-12-18 21:44:57 UTC (rev 52388)
+++ trunk/tests/phpunit/tests/hooks/hasFilter.php       2021-12-19 13:42:37 UTC (rev 52389)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -12,8 +12,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $callback      = '__return_null';
</span><span class="cx" style="display: block; padding: 0 10px">                $hook          = new WP_Hook();
</span><span class="cx" style="display: block; padding: 0 10px">                $tag           = __FUNCTION__;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $priority      = rand( 1, 100 );
-               $accepted_args = rand( 1, 100 );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $priority      = 1;
+               $accepted_args = 2;
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $hook->add_filter( $tag, $callback, $priority, $accepted_args );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -25,8 +25,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $callback      = array( $a, 'action' );
</span><span class="cx" style="display: block; padding: 0 10px">                $hook          = new WP_Hook();
</span><span class="cx" style="display: block; padding: 0 10px">                $tag           = __FUNCTION__;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $priority      = rand( 1, 100 );
-               $accepted_args = rand( 1, 100 );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $priority      = 1;
+               $accepted_args = 2;
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $hook->add_filter( $tag, $callback, $priority, $accepted_args );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -37,8 +37,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $callback      = array( 'MockAction', 'action' );
</span><span class="cx" style="display: block; padding: 0 10px">                $hook          = new WP_Hook();
</span><span class="cx" style="display: block; padding: 0 10px">                $tag           = __FUNCTION__;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $priority      = rand( 1, 100 );
-               $accepted_args = rand( 1, 100 );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $priority      = 1;
+               $accepted_args = 2;
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $hook->add_filter( $tag, $callback, $priority, $accepted_args );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -49,8 +49,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $callback      = '__return_null';
</span><span class="cx" style="display: block; padding: 0 10px">                $hook          = new WP_Hook();
</span><span class="cx" style="display: block; padding: 0 10px">                $tag           = __FUNCTION__;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $priority      = rand( 1, 100 );
-               $accepted_args = rand( 1, 100 );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $priority      = 1;
+               $accepted_args = 2;
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $hook->add_filter( $tag, $callback, $priority, $accepted_args );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -74,8 +74,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $callback      = '__return_null';
</span><span class="cx" style="display: block; padding: 0 10px">                $hook          = new WP_Hook();
</span><span class="cx" style="display: block; padding: 0 10px">                $tag           = __FUNCTION__;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $priority      = rand( 1, 100 );
-               $accepted_args = rand( 1, 100 );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $priority      = 1;
+               $accepted_args = 2;
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $hook->add_filter( $tag, $callback, $priority, $accepted_args );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span></span></pre></div>
<a id="trunktestsphpunittestshookshasFiltersphp"></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/hooks/hasFilters.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/hooks/hasFilters.php    2021-12-18 21:44:57 UTC (rev 52388)
+++ trunk/tests/phpunit/tests/hooks/hasFilters.php      2021-12-19 13:42:37 UTC (rev 52389)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -12,8 +12,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $callback      = '__return_null';
</span><span class="cx" style="display: block; padding: 0 10px">                $hook          = new WP_Hook();
</span><span class="cx" style="display: block; padding: 0 10px">                $tag           = __FUNCTION__;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $priority      = rand( 1, 100 );
-               $accepted_args = rand( 1, 100 );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $priority      = 1;
+               $accepted_args = 2;
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $hook->add_filter( $tag, $callback, $priority, $accepted_args );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -29,8 +29,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $callback      = '__return_null';
</span><span class="cx" style="display: block; padding: 0 10px">                $hook          = new WP_Hook();
</span><span class="cx" style="display: block; padding: 0 10px">                $tag           = __FUNCTION__;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $priority      = rand( 1, 100 );
-               $accepted_args = rand( 1, 100 );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $priority      = 1;
+               $accepted_args = 2;
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $hook->add_filter( $tag, $callback, $priority, $accepted_args );
</span><span class="cx" style="display: block; padding: 0 10px">                $hook->remove_filter( $tag, $callback, $priority );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -41,8 +41,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $callback      = '__return_null';
</span><span class="cx" style="display: block; padding: 0 10px">                $hook          = new WP_Hook();
</span><span class="cx" style="display: block; padding: 0 10px">                $tag           = __FUNCTION__;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $priority      = rand( 1, 100 );
-               $accepted_args = rand( 1, 100 );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $priority      = 1;
+               $accepted_args = 2;
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $hook->add_filter( $tag, $callback, $priority, $accepted_args );
</span><span class="cx" style="display: block; padding: 0 10px">                $function_key = _wp_filter_build_unique_id( $tag, $callback, $priority );
</span></span></pre></div>
<a id="trunktestsphpunittestshooksiteratorphp"></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/hooks/iterator.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/hooks/iterator.php      2021-12-18 21:44:57 UTC (rev 52388)
+++ trunk/tests/phpunit/tests/hooks/iterator.php        2021-12-19 13:42:37 UTC (rev 52389)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -13,8 +13,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $callback_two  = '__return_false';
</span><span class="cx" style="display: block; padding: 0 10px">                $hook          = new WP_Hook();
</span><span class="cx" style="display: block; padding: 0 10px">                $tag           = __FUNCTION__;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $priority      = rand( 1, 100 );
-               $accepted_args = rand( 1, 100 );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $priority      = 1;
+               $accepted_args = 2;
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $hook->add_filter( $tag, $callback_one, $priority, $accepted_args );
</span><span class="cx" style="display: block; padding: 0 10px">                $hook->add_filter( $tag, $callback_two, $priority + 1, $accepted_args );
</span></span></pre></div>
<a id="trunktestsphpunittestshookspreinitHooksphp"></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/hooks/preinitHooks.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/hooks/preinitHooks.php  2021-12-18 21:44:57 UTC (rev 52388)
+++ trunk/tests/phpunit/tests/hooks/preinitHooks.php    2021-12-19 13:42:37 UTC (rev 52389)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -10,9 +10,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_array_to_hooks() {
</span><span class="cx" style="display: block; padding: 0 10px">                $tag1      = __FUNCTION__ . '_1';
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $priority1 = rand( 1, 100 );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $priority1 = 1;
</ins><span class="cx" style="display: block; padding: 0 10px">                 $tag2      = __FUNCTION__ . '_2';
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $priority2 = rand( 1, 100 );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $priority2 = 2;
</ins><span class="cx" style="display: block; padding: 0 10px">                 $filters   = array(
</span><span class="cx" style="display: block; padding: 0 10px">                        $tag1 => array(
</span><span class="cx" style="display: block; padding: 0 10px">                                $priority1 => array(
</span></span></pre></div>
<a id="trunktestsphpunittestshooksremoveAllFiltersphp"></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/hooks/removeAllFilters.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/hooks/removeAllFilters.php      2021-12-18 21:44:57 UTC (rev 52388)
+++ trunk/tests/phpunit/tests/hooks/removeAllFilters.php        2021-12-19 13:42:37 UTC (rev 52389)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -12,8 +12,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $callback      = '__return_null';
</span><span class="cx" style="display: block; padding: 0 10px">                $hook          = new WP_Hook();
</span><span class="cx" style="display: block; padding: 0 10px">                $tag           = __FUNCTION__;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $priority      = rand( 1, 100 );
-               $accepted_args = rand( 1, 100 );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $priority      = 1;
+               $accepted_args = 2;
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $hook->add_filter( $tag, $callback, $priority, $accepted_args );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</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">                $callback_two  = '__return_false';
</span><span class="cx" style="display: block; padding: 0 10px">                $hook          = new WP_Hook();
</span><span class="cx" style="display: block; padding: 0 10px">                $tag           = __FUNCTION__;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $priority      = rand( 1, 100 );
-               $accepted_args = rand( 1, 100 );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $priority      = 1;
+               $accepted_args = 2;
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $hook->add_filter( $tag, $callback_one, $priority, $accepted_args );
</span><span class="cx" style="display: block; padding: 0 10px">                $hook->add_filter( $tag, $callback_two, $priority + 1, $accepted_args );
</span></span></pre></div>
<a id="trunktestsphpunittestshooksremoveFilterphp"></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/hooks/removeFilter.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/hooks/removeFilter.php  2021-12-18 21:44:57 UTC (rev 52388)
+++ trunk/tests/phpunit/tests/hooks/removeFilter.php    2021-12-19 13:42:37 UTC (rev 52389)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -12,8 +12,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $callback      = '__return_null';
</span><span class="cx" style="display: block; padding: 0 10px">                $hook          = new WP_Hook();
</span><span class="cx" style="display: block; padding: 0 10px">                $tag           = __FUNCTION__;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $priority      = rand( 1, 100 );
-               $accepted_args = rand( 1, 100 );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $priority      = 1;
+               $accepted_args = 2;
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $hook->add_filter( $tag, $callback, $priority, $accepted_args );
</span><span class="cx" style="display: block; padding: 0 10px">                $hook->remove_filter( $tag, $callback, $priority );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -26,8 +26,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $callback      = array( $a, 'action' );
</span><span class="cx" style="display: block; padding: 0 10px">                $hook          = new WP_Hook();
</span><span class="cx" style="display: block; padding: 0 10px">                $tag           = __FUNCTION__;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $priority      = rand( 1, 100 );
-               $accepted_args = rand( 1, 100 );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $priority      = 1;
+               $accepted_args = 2;
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $hook->add_filter( $tag, $callback, $priority, $accepted_args );
</span><span class="cx" style="display: block; padding: 0 10px">                $hook->remove_filter( $tag, $callback, $priority );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -39,8 +39,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $callback      = array( 'MockAction', 'action' );
</span><span class="cx" style="display: block; padding: 0 10px">                $hook          = new WP_Hook();
</span><span class="cx" style="display: block; padding: 0 10px">                $tag           = __FUNCTION__;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $priority      = rand( 1, 100 );
-               $accepted_args = rand( 1, 100 );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $priority      = 1;
+               $accepted_args = 2;
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $hook->add_filter( $tag, $callback, $priority, $accepted_args );
</span><span class="cx" style="display: block; padding: 0 10px">                $hook->remove_filter( $tag, $callback, $priority );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -53,8 +53,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $callback_two  = '__return_false';
</span><span class="cx" style="display: block; padding: 0 10px">                $hook          = new WP_Hook();
</span><span class="cx" style="display: block; padding: 0 10px">                $tag           = __FUNCTION__;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $priority      = rand( 1, 100 );
-               $accepted_args = rand( 1, 100 );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $priority      = 1;
+               $accepted_args = 2;
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $hook->add_filter( $tag, $callback_one, $priority, $accepted_args );
</span><span class="cx" style="display: block; padding: 0 10px">                $hook->add_filter( $tag, $callback_two, $priority, $accepted_args );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -69,8 +69,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $callback_two  = '__return_false';
</span><span class="cx" style="display: block; padding: 0 10px">                $hook          = new WP_Hook();
</span><span class="cx" style="display: block; padding: 0 10px">                $tag           = __FUNCTION__;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $priority      = rand( 1, 100 );
-               $accepted_args = rand( 1, 100 );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $priority      = 1;
+               $accepted_args = 2;
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $hook->add_filter( $tag, $callback_one, $priority, $accepted_args );
</span><span class="cx" style="display: block; padding: 0 10px">                $hook->add_filter( $tag, $callback_two, $priority + 1, $accepted_args );
</span></span></pre></div>
<a id="trunktestsphpunittestsimageintermediateSizephp"></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/intermediateSize.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/image/intermediateSize.php      2021-12-18 21:44:57 UTC (rev 52388)
+++ trunk/tests/phpunit/tests/image/intermediateSize.php        2021-12-19 13:42:37 UTC (rev 52389)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -181,23 +181,23 @@
</span><span class="cx" style="display: block; padding: 0 10px">         * @requires function imagejpeg
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_get_intermediate_sizes_by_array_zero_height() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                // Generate random width.
-               $random_w = rand( 300, 400 );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         // Use this width.
+               $width = 300;
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                // Only one dimention match shouldn't return false positive (see: #17626).
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                add_image_size( 'test-size', $random_w, 0, false );
-               add_image_size( 'false-height', $random_w, 100, true );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         add_image_size( 'test-size', $width, 0, false );
+               add_image_size( 'false-height', $width, 100, true );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $file = DIR_TESTDATA . '/images/waffles.jpg';
</span><span class="cx" style="display: block; padding: 0 10px">                $id   = $this->_make_attachment( $file, 0 );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $original = wp_get_attachment_metadata( $id );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $image_w  = $random_w;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $image_w  = $width;
</ins><span class="cx" style="display: block; padding: 0 10px">                 $image_h  = round( ( $image_w / $original['width'] ) * $original['height'] );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                // Look for a size by array that exists.
</span><span class="cx" style="display: block; padding: 0 10px">                // Note: Staying larger than 300px to miss default medium crop.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $image = image_get_intermediate_size( $id, array( $random_w, 0 ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $image = image_get_intermediate_size( $id, array( $width, 0 ) );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                // Test for the expected string because the array will by definition
</span><span class="cx" style="display: block; padding: 0 10px">                // return with the correct height and width attributes.
</span></span></pre></div>
<a id="trunktestsphpunittestspostattachmentsphp"></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/attachments.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/post/attachments.php    2021-12-18 21:44:57 UTC (rev 52388)
+++ trunk/tests/phpunit/tests/post/attachments.php      2021-12-19 13:42:37 UTC (rev 52389)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -272,8 +272,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $post_id = wp_insert_post(
</span><span class="cx" style="display: block; padding: 0 10px">                        array(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                'post_content' => rand_str(),
-                               'post_title'   => rand_str(),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         'post_content' => 'content',
+                               'post_title'   => 'title',
</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="trunktestsphpunittestspostmetaphp"></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/meta.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/post/meta.php   2021-12-18 21:44:57 UTC (rev 52388)
+++ trunk/tests/phpunit/tests/post/meta.php     2021-12-19 13:42:37 UTC (rev 52389)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -23,8 +23,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_author'  => self::$author->ID,
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_status'  => 'publish',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                'post_content' => rand_str(),
-                               'post_title'   => rand_str(),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         'post_content' => 'content',
+                               'post_title'   => 'title',
</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 class="lines" style="display: block; padding: 0 10px; color: #888">@@ -32,8 +32,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_author'  => self::$author->ID,
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_status'  => 'publish',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                'post_content' => rand_str(),
-                               'post_title'   => rand_str(),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         'post_content' => 'content',
+                               'post_title'   => 'title',
</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="trunktestsphpunittestspostnavmenuphp"></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/nav-menu.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/post/nav-menu.php       2021-12-18 21:44:57 UTC (rev 52388)
+++ trunk/tests/phpunit/tests/post/nav-menu.php 2021-12-19 13:42:37 UTC (rev 52389)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -12,7 +12,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public function set_up() {
</span><span class="cx" style="display: block; padding: 0 10px">                parent::set_up();
</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->menu_id = wp_create_nav_menu( rand_str() );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->menu_id = wp_create_nav_menu( 'foo' );
</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 class="lines" style="display: block; padding: 0 10px; color: #888">@@ -255,8 +255,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_wp_setup_nav_menu_item_for_post_type_archive() {
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $post_type_slug        = rand_str( 12 );
-               $post_type_description = rand_str();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $post_type_slug        = 'fooo-bar-baz';
+               $post_type_description = 'foo';
</ins><span class="cx" style="display: block; padding: 0 10px">                 register_post_type(
</span><span class="cx" style="display: block; padding: 0 10px">                        $post_type_slug,
</span><span class="cx" style="display: block; padding: 0 10px">                        array(
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -288,7 +288,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_wp_setup_nav_menu_item_for_post_type_archive_no_description() {
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $post_type_slug        = rand_str( 12 );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $post_type_slug        = 'fooo-bar-baz';
</ins><span class="cx" style="display: block; padding: 0 10px">                 $post_type_description = '';
</span><span class="cx" style="display: block; padding: 0 10px">                register_post_type(
</span><span class="cx" style="display: block; padding: 0 10px">                        $post_type_slug,
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -319,8 +319,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_wp_setup_nav_menu_item_for_post_type_archive_custom_description() {
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $post_type_slug        = rand_str( 12 );
-               $post_type_description = rand_str();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $post_type_slug        = 'fooo-bar-baz';
+               $post_type_description = 'foobaz';
</ins><span class="cx" style="display: block; padding: 0 10px">                 register_post_type(
</span><span class="cx" style="display: block; padding: 0 10px">                        $post_type_slug,
</span><span class="cx" style="display: block; padding: 0 10px">                        array(
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -331,7 +331,7 @@
</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">-                $menu_item_description = rand_str();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $menu_item_description = 'foo_description';
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $post_type_archive_item_id = wp_update_nav_menu_item(
</span><span class="cx" style="display: block; padding: 0 10px">                        $this->menu_id,
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -354,7 +354,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_wp_setup_nav_menu_item_for_unknown_post_type_archive_no_description() {
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $post_type_slug = rand_str( 12 );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $post_type_slug = 'fooo-bar-baz';
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $post_type_archive_item_id = wp_update_nav_menu_item(
</span><span class="cx" style="display: block; padding: 0 10px">                        $this->menu_id,
</span></span></pre></div>
<a id="trunktestsphpunittestspostqueryphp"></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/query.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/post/query.php  2021-12-18 21:44:57 UTC (rev 52388)
+++ trunk/tests/phpunit/tests/post/query.php    2021-12-19 13:42:37 UTC (rev 52389)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -132,13 +132,13 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $post_id1 = self::factory()->post->create(
</span><span class="cx" style="display: block; padding: 0 10px">                        array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_type'  => 'page',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                'menu_order' => rand( 1, 100 ),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         'menu_order' => 1,
</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">                $post_id2 = self::factory()->post->create(
</span><span class="cx" style="display: block; padding: 0 10px">                        array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_type'  => 'page',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                'menu_order' => rand( 1, 100 ),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         'menu_order' => 2,
</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">                $post_id3 = self::factory()->post->create(
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -145,7 +145,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_type'   => 'page',
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_parent' => $post_id2,
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                'menu_order'  => rand( 1, 100 ),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         'menu_order'  => 3,
</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">                $post_id4 = self::factory()->post->create(
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -152,13 +152,13 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_type'   => 'page',
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_parent' => $post_id2,
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                'menu_order'  => rand( 1, 100 ),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         'menu_order'  => 4,
</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">                $post_id5 = self::factory()->post->create(
</span><span class="cx" style="display: block; padding: 0 10px">                        array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_type'  => 'page',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                'menu_order' => rand( 1, 100 ),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         'menu_order' => 5,
</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 class="lines" style="display: block; padding: 0 10px; color: #888">@@ -219,7 +219,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        $post_id,
</span><span class="cx" style="display: block; padding: 0 10px">                        array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_mime_type' => 'image/jpeg',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                'menu_order'     => rand( 1, 100 ),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         'menu_order'     => 1,
</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">                $att_ids[2] = self::factory()->attachment->create_object(
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -227,7 +227,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        $post_id,
</span><span class="cx" style="display: block; padding: 0 10px">                        array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_mime_type' => 'image/jpeg',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                'menu_order'     => rand( 1, 100 ),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         'menu_order'     => 2,
</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">                $att_ids[3] = self::factory()->attachment->create_object(
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -235,7 +235,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        $post_id,
</span><span class="cx" style="display: block; padding: 0 10px">                        array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_mime_type' => 'image/jpeg',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                'menu_order'     => rand( 1, 100 ),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         'menu_order'     => 3,
</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">                $att_ids[4] = self::factory()->attachment->create_object(
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -243,7 +243,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        $post_id,
</span><span class="cx" style="display: block; padding: 0 10px">                        array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_mime_type' => 'image/jpeg',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                'menu_order'     => rand( 1, 100 ),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         'menu_order'     => 4,
</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">                $att_ids[5] = self::factory()->attachment->create_object(
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -251,7 +251,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        $post_id,
</span><span class="cx" style="display: block; padding: 0 10px">                        array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_mime_type' => 'image/jpeg',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                'menu_order'     => rand( 1, 100 ),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         'menu_order'     => 5,
</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="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-12-18 21:44:57 UTC (rev 52388)
+++ trunk/tests/phpunit/tests/post/revisions.php        2021-12-19 13:42:37 UTC (rev 52389)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -17,7 +17,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        public function set_up() {
</span><span class="cx" style="display: block; padding: 0 10px">                parent::set_up();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->post_type = rand_str( 20 );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->post_type = 'test-revision';
</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 class="lines" style="display: block; padding: 0 10px; color: #888">@@ -446,7 +446,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_status'  => 'publish',
</span><span class="cx" style="display: block; padding: 0 10px">                                'ID'           => $post_id,
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                'post_content' => rand_str(),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         'post_content' => 'content',
</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="trunktestsphpunittestsposttypesphp"></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/types.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/post/types.php  2021-12-18 21:44:57 UTC (rev 52388)
+++ trunk/tests/phpunit/tests/post/types.php    2021-12-19 13:42:37 UTC (rev 52389)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -21,7 +21,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public function set_up() {
</span><span class="cx" style="display: block; padding: 0 10px">                parent::set_up();
</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->post_type = rand_str( 20 );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->post_type = 'foo1';
</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_post_type() {
</span></span></pre></div>
<a id="trunktestsphpunittestspostphp"></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.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/post.php        2021-12-18 21:44:57 UTC (rev 52388)
+++ trunk/tests/phpunit/tests/post.php  2021-12-19 13:42:37 UTC (rev 52389)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -68,8 +68,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        $post = array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_author'  => self::$editor_id,
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_status'  => 'publish',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                'post_content' => rand_str(),
-                               'post_title'   => rand_str(),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         'post_content' => "{$post_type}_content",
+                               'post_title'   => "{$post_type}_title",
</ins><span class="cx" style="display: block; padding: 0 10px">                                 'tax_input'    => array(
</span><span class="cx" style="display: block; padding: 0 10px">                                        'post_tag' => 'tag1,tag2',
</span><span class="cx" style="display: block; padding: 0 10px">                                        'ctax'     => 'cterm1,cterm2',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -126,8 +126,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $post = array(
</span><span class="cx" style="display: block; padding: 0 10px">                        'post_author'  => self::$editor_id,
</span><span class="cx" style="display: block; padding: 0 10px">                        'post_status'  => 'publish',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        'post_content' => rand_str(),
-                       'post_title'   => rand_str(),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 'post_content' => 'content',
+                       'post_title'   => 'title',
</ins><span class="cx" style="display: block; padding: 0 10px">                         'post_date'    => date_format( date_create( "@{$future_date}" ), 'Y-m-d H:i:s' ),
</span><span class="cx" style="display: block; padding: 0 10px">                );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -162,8 +162,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $post = array(
</span><span class="cx" style="display: block; padding: 0 10px">                        'post_author'  => self::$editor_id,
</span><span class="cx" style="display: block; padding: 0 10px">                        'post_status'  => 'publish',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        'post_content' => rand_str(),
-                       'post_title'   => rand_str(),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 'post_content' => 'content',
+                       'post_title'   => 'title',
</ins><span class="cx" style="display: block; padding: 0 10px">                         'post_date'    => date_format( date_create( "@{$future_date_1}" ), 'Y-m-d H:i:s' ),
</span><span class="cx" style="display: block; padding: 0 10px">                );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -207,8 +207,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $post = array(
</span><span class="cx" style="display: block; padding: 0 10px">                        'post_author'  => self::$editor_id,
</span><span class="cx" style="display: block; padding: 0 10px">                        'post_status'  => 'publish',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        'post_content' => rand_str(),
-                       'post_title'   => rand_str(),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 'post_content' => 'content',
+                       'post_title'   => 'title',
</ins><span class="cx" style="display: block; padding: 0 10px">                         'post_date'    => date_format( date_create( "@{$future_date_1}" ), 'Y-m-d H:i:s' ),
</span><span class="cx" style="display: block; padding: 0 10px">                );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -249,8 +249,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $post = array(
</span><span class="cx" style="display: block; padding: 0 10px">                        'post_author'  => self::$editor_id,
</span><span class="cx" style="display: block; padding: 0 10px">                        'post_status'  => 'draft',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        'post_content' => rand_str(),
-                       'post_title'   => rand_str(),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 'post_content' => 'content',
+                       'post_title'   => 'title',
</ins><span class="cx" style="display: block; padding: 0 10px">                         'post_date'    => date_format( date_create( "@{$future_date}" ), 'Y-m-d H:i:s' ),
</span><span class="cx" style="display: block; padding: 0 10px">                );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -284,8 +284,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $post = array(
</span><span class="cx" style="display: block; padding: 0 10px">                        'post_author'  => self::$editor_id,
</span><span class="cx" style="display: block; padding: 0 10px">                        'post_status'  => 'publish',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        'post_content' => rand_str(),
-                       'post_title'   => rand_str(),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 'post_content' => 'content',
+                       'post_title'   => 'title',
</ins><span class="cx" style="display: block; padding: 0 10px">                         'post_date'    => date_format( date_create( "@{$future_date_1}" ), 'Y-m-d H:i:s' ),
</span><span class="cx" style="display: block; padding: 0 10px">                );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -328,8 +328,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        $post = array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_author'  => self::$editor_id,
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_status'  => 'publish',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                'post_content' => rand_str(),
-                               'post_title'   => rand_str(),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         'post_content' => "{$status}_content",
+                               'post_title'   => "{$status}_title",
</ins><span class="cx" style="display: block; padding: 0 10px">                                 'post_date'    => date_format( date_create( "@{$future_date_1}" ), 'Y-m-d H:i:s' ),
</span><span class="cx" style="display: block; padding: 0 10px">                        );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -370,8 +370,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $post = array(
</span><span class="cx" style="display: block; padding: 0 10px">                        'post_author'  => self::$editor_id,
</span><span class="cx" style="display: block; padding: 0 10px">                        'post_status'  => 'private',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        'post_content' => rand_str(),
-                       'post_title'   => rand_str(),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 'post_content' => 'content',
+                       'post_title'   => 'title',
</ins><span class="cx" style="display: block; padding: 0 10px">                         'post_date'    => date_format( date_create( "@{$future_date}" ), 'Y-m-d H:i:s' ),
</span><span class="cx" style="display: block; padding: 0 10px">                );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -404,8 +404,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $post = array(
</span><span class="cx" style="display: block; padding: 0 10px">                        'post_author'  => self::$editor_id,
</span><span class="cx" style="display: block; padding: 0 10px">                        'post_status'  => 'publish',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        'post_content' => rand_str(),
-                       'post_title'   => rand_str(),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 'post_content' => 'content',
+                       'post_title'   => 'title',
</ins><span class="cx" style="display: block; padding: 0 10px">                         'post_date'    => '2012-02-30 00:00:00',
</span><span class="cx" style="display: block; padding: 0 10px">                );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -427,8 +427,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $post = array(
</span><span class="cx" style="display: block; padding: 0 10px">                        'post_author'  => self::$editor_id,
</span><span class="cx" style="display: block; padding: 0 10px">                        'post_status'  => 'publish',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        'post_content' => rand_str(),
-                       'post_title'   => rand_str(),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 'post_content' => 'content',
+                       'post_title'   => 'title',
</ins><span class="cx" style="display: block; padding: 0 10px">                         'post_date'    => date_format( date_create( "@{$future_date_1}" ), 'Y-m-d H:i:s' ),
</span><span class="cx" style="display: block; padding: 0 10px">                );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -533,8 +533,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $post = array(
</span><span class="cx" style="display: block; padding: 0 10px">                        'post_author'  => self::$editor_id,
</span><span class="cx" style="display: block; padding: 0 10px">                        'post_status'  => 'publish',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        'post_content' => rand_str(),
-                       'post_title'   => rand_str(),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 'post_content' => 'content',
+                       'post_title'   => 'title',
</ins><span class="cx" style="display: block; padding: 0 10px">                         'post_date'    => date_format( date_create( "@{$future_date}" ), 'Y-m-d H:i:s' ),
</span><span class="cx" style="display: block; padding: 0 10px">                );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -564,7 +564,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $post = array(
</span><span class="cx" style="display: block; padding: 0 10px">                        'post_author'  => self::$editor_id,
</span><span class="cx" style="display: block; padding: 0 10px">                        'post_status'  => 'publish',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        'post_content' => rand_str(),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 'post_content' => 'content',
</ins><span class="cx" style="display: block; padding: 0 10px">                         'post_title'   => '',
</span><span class="cx" style="display: block; padding: 0 10px">                        'post_date'    => '2007-10-31 06:15:00',
</span><span class="cx" style="display: block; padding: 0 10px">                );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -782,11 +782,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                register_taxonomy( 'test_tax', 'post' );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $title          = rand_str();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $title          = 'title';
</ins><span class="cx" style="display: block; padding: 0 10px">                 $post_data      = array(
</span><span class="cx" style="display: block; padding: 0 10px">                        'post_author'  => self::$editor_id,
</span><span class="cx" style="display: block; padding: 0 10px">                        'post_status'  => 'publish',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        'post_content' => rand_str(),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 'post_content' => 'content',
</ins><span class="cx" style="display: block; padding: 0 10px">                         'post_title'   => $title,
</span><span class="cx" style="display: block; padding: 0 10px">                        'tax_input'    => array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'test_tax' => array( 'term', 'term2', 'term3' ),
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -906,7 +906,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                register_taxonomy( $tax, $post_type );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $post = self::factory()->post->create( array( 'post_type' => $post_type ) );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                wp_set_object_terms( $post, rand_str(), $tax );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         wp_set_object_terms( $post, 'foo', $tax );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $wp_tag_cloud = wp_tag_cloud(
</span><span class="cx" style="display: block; padding: 0 10px">                        array(
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -973,8 +973,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_author'  => self::$editor_id,
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_status'  => 'publish',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                'post_content' => rand_str(),
-                               'post_title'   => rand_str(),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         'post_content' => 'content',
+                               'post_title'   => 'title',
</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">                $post    = get_post( $post_id );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -991,8 +991,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_author'  => self::$editor_id,
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_status'  => 'publish',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                'post_content' => rand_str(),
-                               'post_title'   => rand_str(),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         'post_content' => 'content',
+                               'post_title'   => 'title',
</ins><span class="cx" style="display: block; padding: 0 10px">                                 'post_type'    => 'page',
</span><span class="cx" style="display: block; padding: 0 10px">                        )
</span><span class="cx" style="display: block; padding: 0 10px">                );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1203,8 +1203,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $post = array(
</span><span class="cx" style="display: block; padding: 0 10px">                        'post_author'   => self::$editor_id,
</span><span class="cx" style="display: block; padding: 0 10px">                        'post_status'   => 'publish',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        'post_content'  => rand_str(),
-                       'post_title'    => rand_str(),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 'post_content'  => 'content',
+                       'post_title'    => 'title',
</ins><span class="cx" style="display: block; padding: 0 10px">                         'post_date_gmt' => '2014-01-01 12:00:00',
</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-12-18 21:44:57 UTC (rev 52388)
+++ trunk/tests/phpunit/tests/query/commentCount.php    2021-12-19 13:42:37 UTC (rev 52389)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -21,7 +21,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public static function wpSetUpBeforeClass( WP_UnitTest_Factory $factory ) {
</span><span class="cx" style="display: block; padding: 0 10px">                $post_id             = $factory->post->create(
</span><span class="cx" style="display: block; padding: 0 10px">                        array(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                'post_content' => 1 . rand_str() . ' about',
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         'post_content' => '1 about',
</ins><span class="cx" style="display: block; padding: 0 10px">                                 'post_type'    => self::$post_type,
</span><span class="cx" style="display: block; padding: 0 10px">                        )
</span><span class="cx" style="display: block; padding: 0 10px">                );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -30,7 +30,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $post_id             = $factory->post->create(
</span><span class="cx" style="display: block; padding: 0 10px">                        array(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                'post_content' => 1 . rand_str() . ' about',
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         'post_content' => '2 about',
</ins><span class="cx" style="display: block; padding: 0 10px">                                 'post_type'    => self::$post_type,
</span><span class="cx" style="display: block; padding: 0 10px">                        )
</span><span class="cx" style="display: block; padding: 0 10px">                );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -41,7 +41,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $post_id             = $factory->post->create(
</span><span class="cx" style="display: block; padding: 0 10px">                        array(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                'post_content' => 1 . rand_str() . ' about',
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         'post_content' => '3 about',
</ins><span class="cx" style="display: block; padding: 0 10px">                                 'post_type'    => self::$post_type,
</span><span class="cx" style="display: block; padding: 0 10px">                        )
</span><span class="cx" style="display: block; padding: 0 10px">                );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -52,7 +52,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $post_id             = $factory->post->create(
</span><span class="cx" style="display: block; padding: 0 10px">                        array(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                'post_content' => 1 . rand_str() . ' about',
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         'post_content' => '4 about',
</ins><span class="cx" style="display: block; padding: 0 10px">                                 'post_type'    => self::$post_type,
</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="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-12-18 21:44:57 UTC (rev 52388)
+++ trunk/tests/phpunit/tests/query/search.php  2021-12-19 13:42:37 UTC (rev 52389)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -10,7 +10,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public function set_up() {
</span><span class="cx" style="display: block; padding: 0 10px">                parent::set_up();
</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->post_type = rand_str( 12 );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->post_type = 'foo1';
</ins><span class="cx" style="display: block; padding: 0 10px">                 register_post_type( $this->post_type );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $this->q = new WP_Query();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -36,7 +36,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                foreach ( range( 1, 7 ) as $i ) {
</span><span class="cx" style="display: block; padding: 0 10px">                        self::factory()->post->create(
</span><span class="cx" style="display: block; padding: 0 10px">                                array(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                        'post_content' => $i . rand_str() . ' about',
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                 'post_content' => "{$i} about",
</ins><span class="cx" style="display: block; padding: 0 10px">                                         'post_type'    => $this->post_type,
</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="trunktestsphpunittestsquerytaxQueryphp"></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/taxQuery.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/query/taxQuery.php      2021-12-18 21:44:57 UTC (rev 52388)
+++ trunk/tests/phpunit/tests/query/taxQuery.php        2021-12-19 13:42:37 UTC (rev 52389)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1209,8 +1209,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                register_taxonomy_for_object_type( 'post_tag', 'attachment:image' );
</span><span class="cx" style="display: block; padding: 0 10px">                $tag_id   = self::factory()->term->create(
</span><span class="cx" style="display: block; padding: 0 10px">                        array(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                'slug' => rand_str(),
-                               'name' => rand_str(),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         'slug' => 'foo-bar',
+                               'name' => 'Foo Bar',
</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">                $image_id = self::factory()->attachment->create_object(
</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-12-18 21:44:57 UTC (rev 52388)
+++ trunk/tests/phpunit/tests/rest-api/rest-attachments-controller.php  2021-12-19 13:42:37 UTC (rev 52389)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -522,8 +522,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_get_items_invalid_date() {
</span><span class="cx" style="display: block; padding: 0 10px">                $request = new WP_REST_Request( 'GET', '/wp/v2/media' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $request->set_param( 'after', rand_str() );
-               $request->set_param( 'before', rand_str() );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $request->set_param( 'after', 'foo' );
+               $request->set_param( 'before', 'bar' );
</ins><span class="cx" style="display: block; padding: 0 10px">                 $response = rest_get_server()->dispatch( $request );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertErrorResponse( 'rest_invalid_param', $response, 400 );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -570,8 +570,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_get_items_invalid_modified_date() {
</span><span class="cx" style="display: block; padding: 0 10px">                $request = new WP_REST_Request( 'GET', '/wp/v2/media' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $request->set_param( 'modified_after', rand_str() );
-               $request->set_param( 'modified_before', rand_str() );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $request->set_param( 'modified_after', 'foo' );
+               $request->set_param( 'modified_before', 'bar' );
</ins><span class="cx" style="display: block; padding: 0 10px">                 $response = rest_get_server()->dispatch( $request );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertErrorResponse( 'rest_invalid_param', $response, 400 );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span></span></pre></div>
<a id="trunktestsphpunittestsrestapirestcommentscontrollerphp"></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-comments-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-comments-controller.php   2021-12-18 21:44:57 UTC (rev 52388)
+++ trunk/tests/phpunit/tests/rest-api/rest-comments-controller.php     2021-12-19 13:42:37 UTC (rev 52389)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -888,8 +888,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_get_comments_invalid_date() {
</span><span class="cx" style="display: block; padding: 0 10px">                $request = new WP_REST_Request( 'GET', '/wp/v2/comments' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $request->set_param( 'after', rand_str() );
-               $request->set_param( 'before', rand_str() );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $request->set_param( 'after', 'foo' );
+               $request->set_param( 'before', 'bar' );
</ins><span class="cx" style="display: block; padding: 0 10px">                 $response = rest_get_server()->dispatch( $request );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertErrorResponse( 'rest_invalid_param', $response, 400 );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1477,7 +1477,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        'author_email' => 'lovejoy@example.com',
</span><span class="cx" style="display: block; padding: 0 10px">                        'author_url'   => 'http://timothylovejoy.jr',
</span><span class="cx" style="display: block; padding: 0 10px">                        'content'      => 'It\'s all over\, people! We don\'t have a prayer!',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        'date'         => rand_str(),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 'date'         => 'foo-bar',
</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">                $request = new WP_REST_Request( 'POST', '/wp/v2/comments' );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2625,8 +2625,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                wp_set_current_user( self::$admin_id );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $params = array(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        'content' => rand_str(),
-                       'date'    => rand_str(),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 'content' => 'content',
+                       'date'    => 'foo',
</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">                $request = new WP_REST_Request( 'PUT', sprintf( '/wp/v2/comments/%d', self::$approved_id ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2641,8 +2641,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                wp_set_current_user( self::$admin_id );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $params = array(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        'content'  => rand_str(),
-                       'date_gmt' => rand_str(),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 'content'  => 'content',
+                       'date_gmt' => 'foo',
</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">                $request = new WP_REST_Request( 'PUT', sprintf( '/wp/v2/comments/%d', self::$approved_id ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2770,7 +2770,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                // Change the comment parent.
</span><span class="cx" style="display: block; padding: 0 10px">                $request = new WP_REST_Request( 'PUT', sprintf( '/wp/v2/comments/%s', $child_comment ) );
</span><span class="cx" style="display: block; padding: 0 10px">                $request->set_param( 'parent', $comment_id_1 );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $request->set_param( 'content', rand_str() );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $request->set_param( 'content', 'foo bar' );
</ins><span class="cx" style="display: block; padding: 0 10px">                 $response = rest_get_server()->dispatch( $request );
</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"> 
</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-12-18 21:44:57 UTC (rev 52388)
+++ trunk/tests/phpunit/tests/rest-api/rest-pages-controller.php        2021-12-19 13:42:37 UTC (rev 52389)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -330,8 +330,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_get_items_invalid_date() {
</span><span class="cx" style="display: block; padding: 0 10px">                $request = new WP_REST_Request( 'GET', '/wp/v2/pages' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $request->set_param( 'after', rand_str() );
-               $request->set_param( 'before', rand_str() );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $request->set_param( 'after', 'foo' );
+               $request->set_param( 'before', 'bar' );
</ins><span class="cx" style="display: block; padding: 0 10px">                 $response = rest_get_server()->dispatch( $request );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertErrorResponse( 'rest_invalid_param', $response, 400 );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -369,8 +369,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_get_items_invalid_modified_date() {
</span><span class="cx" style="display: block; padding: 0 10px">                $request = new WP_REST_Request( 'GET', '/wp/v2/pages' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $request->set_param( 'modified_after', rand_str() );
-               $request->set_param( 'modified_before', rand_str() );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $request->set_param( 'modified_after', 'foo' );
+               $request->set_param( 'modified_before', 'bar' );
</ins><span class="cx" style="display: block; padding: 0 10px">                 $response = rest_get_server()->dispatch( $request );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertErrorResponse( 'rest_invalid_param', $response, 400 );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</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-12-18 21:44:57 UTC (rev 52388)
+++ trunk/tests/phpunit/tests/rest-api/rest-posts-controller.php        2021-12-19 13:42:37 UTC (rev 52389)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1694,8 +1694,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_get_items_invalid_date() {
</span><span class="cx" style="display: block; padding: 0 10px">                $request = new WP_REST_Request( 'GET', '/wp/v2/posts' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $request->set_param( 'after', rand_str() );
-               $request->set_param( 'before', rand_str() );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $request->set_param( 'after', 'foo' );
+               $request->set_param( 'before', 'bar' );
</ins><span class="cx" style="display: block; padding: 0 10px">                 $response = rest_get_server()->dispatch( $request );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertErrorResponse( 'rest_invalid_param', $response, 400 );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1719,8 +1719,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_get_items_invalid_modified_date() {
</span><span class="cx" style="display: block; padding: 0 10px">                $request = new WP_REST_Request( 'GET', '/wp/v2/posts' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $request->set_param( 'modified_after', rand_str() );
-               $request->set_param( 'modified_before', rand_str() );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $request->set_param( 'modified_after', 'foo' );
+               $request->set_param( 'modified_before', 'bar' );
</ins><span class="cx" style="display: block; padding: 0 10px">                 $response = rest_get_server()->dispatch( $request );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertErrorResponse( 'rest_invalid_param', $response, 400 );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2697,7 +2697,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        0,
</span><span class="cx" style="display: block; padding: 0 10px">                        array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_mime_type' => 'image/jpeg',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                'menu_order'     => rand( 1, 100 ),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         'menu_order'     => 1,
</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 class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3310,7 +3310,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_update_post_ignore_readonly() {
</span><span class="cx" style="display: block; padding: 0 10px">                wp_set_current_user( self::$editor_id );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $new_content       = rand_str();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $new_content       = 'foo bar baz';
</ins><span class="cx" style="display: block; padding: 0 10px">                 $expected_modified = current_time( 'mysql' );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $request = new WP_REST_Request( 'PUT', sprintf( '/wp/v2/posts/%d', self::$post_id ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3375,7 +3375,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $request = new WP_REST_Request( 'PUT', sprintf( '/wp/v2/posts/%d', self::$post_id ) );
</span><span class="cx" style="display: block; padding: 0 10px">                $params  = $this->set_post_data(
</span><span class="cx" style="display: block; padding: 0 10px">                        array(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                'date' => rand_str(),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         'date' => 'foo',
</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">                $request->set_body_params( $params );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3390,7 +3390,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $request = new WP_REST_Request( 'PUT', sprintf( '/wp/v2/posts/%d', self::$post_id ) );
</span><span class="cx" style="display: block; padding: 0 10px">                $params  = $this->set_post_data(
</span><span class="cx" style="display: block; padding: 0 10px">                        array(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                'date_gmt' => rand_str(),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         'date_gmt' => 'foo',
</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">                $request->set_body_params( $params );
</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-12-18 21:44:57 UTC (rev 52388)
+++ trunk/tests/phpunit/tests/rewrite/numericSlugs.php  2021-12-19 13:42:37 UTC (rev 52389)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -23,7 +23,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_author'  => $this->author_id,
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_status'  => 'publish',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                'post_content' => rand_str(),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         'post_content' => 'content',
</ins><span class="cx" style="display: block; padding: 0 10px">                                 'post_title'   => '',
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_name'    => '2015',
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_date'    => '2015-02-01 01:00:00',
</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">                        array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_author'  => $this->author_id,
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_status'  => 'publish',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                'post_content' => rand_str(),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         'post_content' => 'content',
</ins><span class="cx" style="display: block; padding: 0 10px">                                 'post_title'   => '',
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_name'    => '2015',
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_date'    => '2015-02-01 01:00:00',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -80,7 +80,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_author'  => $this->author_id,
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_status'  => 'publish',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                'post_content' => rand_str(),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         'post_content' => 'content',
</ins><span class="cx" style="display: block; padding: 0 10px">                                 'post_title'   => '2015',
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_date'    => '2015-02-01 01:00:00',
</span><span class="cx" style="display: block; padding: 0 10px">                        )
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -98,7 +98,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_author'  => $this->author_id,
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_status'  => 'publish',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                'post_content' => rand_str(),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         'post_content' => 'content',
</ins><span class="cx" style="display: block; padding: 0 10px">                                 'post_title'   => '2015',
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_date'    => '2015-02-01 01:00:00',
</span><span class="cx" style="display: block; padding: 0 10px">                        )
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -114,7 +114,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_author'  => $this->author_id,
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_status'  => 'publish',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                'post_content' => rand_str(),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         'post_content' => 'content',
</ins><span class="cx" style="display: block; padding: 0 10px">                                 'post_title'   => '',
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_name'    => '02',
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_date'    => '2015-02-01 01:00:00',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -133,7 +133,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_author'  => $this->author_id,
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_status'  => 'publish',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                'post_content' => rand_str(),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         'post_content' => 'content',
</ins><span class="cx" style="display: block; padding: 0 10px">                                 'post_title'   => '',
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_name'    => '02',
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_date'    => '2015-02-01 01:00:00',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -150,7 +150,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_author'  => $this->author_id,
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_status'  => 'publish',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                'post_content' => rand_str(),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         'post_content' => 'content',
</ins><span class="cx" style="display: block; padding: 0 10px">                                 'post_title'   => '',
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_name'    => '2',
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_date'    => '2015-02-01 01:00:00',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -169,7 +169,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_author'  => $this->author_id,
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_status'  => 'publish',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                'post_content' => rand_str(),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         'post_content' => 'content',
</ins><span class="cx" style="display: block; padding: 0 10px">                                 'post_title'   => '',
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_name'    => '2',
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_date'    => '2015-02-01 01:00:00',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -186,7 +186,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_author'  => $this->author_id,
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_status'  => 'publish',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                'post_content' => rand_str(),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         'post_content' => 'content',
</ins><span class="cx" style="display: block; padding: 0 10px">                                 'post_title'   => '02',
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_date'    => '2015-02-01 01:00:00',
</span><span class="cx" style="display: block; padding: 0 10px">                        )
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -204,7 +204,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_author'  => $this->author_id,
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_status'  => 'publish',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                'post_content' => rand_str(),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         'post_content' => 'content',
</ins><span class="cx" style="display: block; padding: 0 10px">                                 'post_title'   => '02',
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_date'    => '2015-02-01 01:00:00',
</span><span class="cx" style="display: block; padding: 0 10px">                        )
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -220,7 +220,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_author'  => $this->author_id,
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_status'  => 'publish',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                'post_content' => rand_str(),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         'post_content' => 'content',
</ins><span class="cx" style="display: block; padding: 0 10px">                                 'post_title'   => '2',
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_date'    => '2015-02-01 01:00:00',
</span><span class="cx" style="display: block; padding: 0 10px">                        )
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -238,7 +238,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_author'  => $this->author_id,
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_status'  => 'publish',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                'post_content' => rand_str(),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         'post_content' => 'content',
</ins><span class="cx" style="display: block; padding: 0 10px">                                 'post_title'   => '2',
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_date'    => '2015-02-01 01:00:00',
</span><span class="cx" style="display: block; padding: 0 10px">                        )
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -254,7 +254,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_author'  => $this->author_id,
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_status'  => 'publish',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                'post_content' => rand_str(),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         'post_content' => 'content',
</ins><span class="cx" style="display: block; padding: 0 10px">                                 'post_title'   => '',
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_name'    => '01',
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_date'    => '2015-02-01 01:00:00',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -273,7 +273,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_author'  => $this->author_id,
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_status'  => 'publish',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                'post_content' => rand_str(),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         'post_content' => 'content',
</ins><span class="cx" style="display: block; padding: 0 10px">                                 'post_title'   => '',
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_name'    => '01',
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_date'    => '2015-02-01 01:00:00',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -290,7 +290,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_author'  => $this->author_id,
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_status'  => 'publish',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                'post_content' => rand_str(),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         'post_content' => 'content',
</ins><span class="cx" style="display: block; padding: 0 10px">                                 'post_title'   => '01',
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_date'    => '2015-02-01 01:00:00',
</span><span class="cx" style="display: block; padding: 0 10px">                        )
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -308,7 +308,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_author'  => $this->author_id,
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_status'  => 'publish',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                'post_content' => rand_str(),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         'post_content' => 'content',
</ins><span class="cx" style="display: block; padding: 0 10px">                                 'post_title'   => '01',
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_date'    => '2015-02-01 01:00:00',
</span><span class="cx" style="display: block; padding: 0 10px">                        )
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -324,7 +324,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_author'  => $this->author_id,
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_status'  => 'publish',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                'post_content' => rand_str(),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         'post_content' => 'content',
</ins><span class="cx" style="display: block; padding: 0 10px">                                 'post_title'   => '01',
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_date'    => '2015-02-01 01:00:00',
</span><span class="cx" style="display: block; padding: 0 10px">                        )
</span></span></pre></div>
<a id="trunktestsphpunittestsrewritephp"></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.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/rewrite.php     2021-12-18 21:44:57 UTC (rev 52388)
+++ trunk/tests/phpunit/tests/rewrite.php       2021-12-19 13:42:37 UTC (rev 52389)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -173,7 +173,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_url_to_postid_custom_post_type() {
</span><span class="cx" style="display: block; padding: 0 10px">                delete_option( 'rewrite_rules' );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $post_type = rand_str( 12 );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $post_type = 'url_to_postid';
</ins><span class="cx" style="display: block; padding: 0 10px">                 register_post_type( $post_type, array( 'public' => true ) );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $id = self::factory()->post->create( array( 'post_type' => $post_type ) );
</span></span></pre></div>
<a id="trunktestsphpunitteststaxonomyphp"></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/taxonomy.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/taxonomy.php    2021-12-18 21:44:57 UTC (rev 52388)
+++ trunk/tests/phpunit/tests/taxonomy.php      2021-12-19 13:42:37 UTC (rev 52389)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -17,7 +17,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_get_unknown_taxonomies() {
</span><span class="cx" style="display: block; padding: 0 10px">                // Taxonomies for an unknown object type.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertSame( array(), get_object_taxonomies( rand_str() ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->assertSame( array(), get_object_taxonomies( 'unknown' ) );
</ins><span class="cx" style="display: block; padding: 0 10px">                 $this->assertSame( array(), get_object_taxonomies( '' ) );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertSame( array(), get_object_taxonomies( 0 ) );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertSame( array(), get_object_taxonomies( null ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -144,7 +144,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_register_taxonomy() {
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                // Make up a new taxonomy name, and ensure it's unused.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $tax = rand_str();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $tax = 'tax_new';
</ins><span class="cx" style="display: block; padding: 0 10px">                 $this->assertFalse( taxonomy_exists( $tax ) );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                register_taxonomy( $tax, 'post' );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -158,7 +158,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_register_hierarchical_taxonomy() {
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                // Make up a new taxonomy name, and ensure it's unused.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $tax = rand_str();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $tax = 'tax_new';
</ins><span class="cx" style="display: block; padding: 0 10px">                 $this->assertFalse( taxonomy_exists( $tax ) );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                register_taxonomy( $tax, 'post', array( 'hierarchical' => true ) );
</span></span></pre></div>
<a id="trunktestsphpunitteststermgetTermFieldphp"></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/term/getTermField.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/term/getTermField.php   2021-12-18 21:44:57 UTC (rev 52388)
+++ trunk/tests/phpunit/tests/term/getTermField.php     2021-12-19 13:42:37 UTC (rev 52389)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -91,7 +91,7 @@
</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 test_get_term_field_name() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $name = rand_str( 15 );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $name = 'baz';
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $term = self::factory()->term->create_and_get(
</span><span class="cx" style="display: block; padding: 0 10px">                        array(
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -106,7 +106,7 @@
</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 test_get_term_field_slug_when_slug_is_set() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $slug = rand_str( 15 );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $slug = 'baz';
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $term = self::factory()->term->create_and_get(
</span><span class="cx" style="display: block; padding: 0 10px">                        array(
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -121,7 +121,7 @@
</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 test_get_term_field_slug_when_slug_falls_back_from_name() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $name = rand_str( 15 );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $name = 'baz';
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $term = self::factory()->term->create_and_get(
</span><span class="cx" style="display: block; padding: 0 10px">                        array(
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -156,7 +156,7 @@
</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 test_get_term_field_description() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $desc = wpautop( rand_str() );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $desc = wpautop( 'baz' );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $term = self::factory()->term->create_and_get(
</span><span class="cx" style="display: block; padding: 0 10px">                        array(
</span></span></pre></div>
<a id="trunktestsphpunitteststermsplitSharedTermphp"></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/term/splitSharedTerm.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/term/splitSharedTerm.php        2021-12-18 21:44:57 UTC (rev 52388)
+++ trunk/tests/phpunit/tests/term/splitSharedTerm.php  2021-12-19 13:42:37 UTC (rev 52389)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -208,7 +208,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        array( '%d' )
</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">-                $menu_id       = wp_create_nav_menu( rand_str() );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $menu_id       = wp_create_nav_menu( 'Nav Menu Bar' );
</ins><span class="cx" style="display: block; padding: 0 10px">                 $cat_menu_item = wp_update_nav_menu_item(
</span><span class="cx" style="display: block; padding: 0 10px">                        $menu_id,
</span><span class="cx" style="display: block; padding: 0 10px">                        0,
</span></span></pre></div>
<a id="trunktestsphpunitteststermtermExistsphp"></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/term/termExists.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/term/termExists.php     2021-12-18 21:44:57 UTC (rev 52388)
+++ trunk/tests/phpunit/tests/term/termExists.php       2021-12-19 13:42:37 UTC (rev 52389)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -260,7 +260,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                register_taxonomy( 'wptests_tax', 'post' );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                // Insert a term.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $term = rand_str();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $term = __FUNCTION__;
</ins><span class="cx" style="display: block; padding: 0 10px">                 $t    = wp_insert_term( $term, 'wptests_tax' );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertIsArray( $t );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertEquals( $t['term_id'], term_exists( $t['term_id'] ) );
</span></span></pre></div>
<a id="trunktestsphpunitteststermwpSetObjectTermsphp"></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/term/wpSetObjectTerms.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/term/wpSetObjectTerms.php       2021-12-18 21:44:57 UTC (rev 52388)
+++ trunk/tests/phpunit/tests/term/wpSetObjectTerms.php 2021-12-19 13:42:37 UTC (rev 52389)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -133,9 +133,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $ids = self::$post_ids;
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $terms = array(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        rand_str(),
-                       rand_str(),
-                       rand_str(),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 'term0',
+                       'term1',
+                       'term2',
</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">                foreach ( $ids as $id ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -164,7 +164,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_set_object_terms_invalid() {
</span><span class="cx" style="display: block; padding: 0 10px">                // Bogus taxonomy.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $result = wp_set_object_terms( self::$post_ids[0], array( rand_str() ), rand_str() );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $result = wp_set_object_terms( self::$post_ids[0], array( 'foo' ), 'invalid-taxonomy' );
</ins><span class="cx" style="display: block; padding: 0 10px">                 $this->assertWPError( $result );
</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="trunktestsphpunitteststermwpTaxonomyphp"></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/term/wpTaxonomy.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/term/wpTaxonomy.php     2021-12-18 21:44:57 UTC (rev 52388)
+++ trunk/tests/phpunit/tests/term/wpTaxonomy.php       2021-12-19 13:42:37 UTC (rev 52389)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -18,7 +18,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                /* @var WP $wp */
</span><span class="cx" style="display: block; padding: 0 10px">                global $wp;
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $taxonomy        = rand_str();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $taxonomy        = 'taxonomy1';
</ins><span class="cx" style="display: block; padding: 0 10px">                 $taxonomy_object = new WP_Taxonomy( $taxonomy, 'post' );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $taxonomy_object->add_rewrite_rules();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -31,7 +31,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                /* @var WP $wp */
</span><span class="cx" style="display: block; padding: 0 10px">                global $wp;
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $taxonomy        = rand_str();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $taxonomy        = 'taxonomy2';
</ins><span class="cx" style="display: block; padding: 0 10px">                 $taxonomy_object = new WP_Taxonomy(
</span><span class="cx" style="display: block; padding: 0 10px">                        $taxonomy,
</span><span class="cx" style="display: block; padding: 0 10px">                        'post',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -58,7 +58,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                /* @var WP_Rewrite $wp_rewrite */
</span><span class="cx" style="display: block; padding: 0 10px">                global $wp_rewrite;
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $taxonomy        = rand_str();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $taxonomy        = 'taxonomy3';
</ins><span class="cx" style="display: block; padding: 0 10px">                 $taxonomy_object = new WP_Taxonomy(
</span><span class="cx" style="display: block; padding: 0 10px">                        $taxonomy,
</span><span class="cx" style="display: block; padding: 0 10px">                        'post',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -79,7 +79,7 @@
</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 test_adds_ajax_callback() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $taxonomy        = rand_str();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $taxonomy        = 'taxonomy4';
</ins><span class="cx" style="display: block; padding: 0 10px">                 $taxonomy_object = new WP_Taxonomy(
</span><span class="cx" style="display: block; padding: 0 10px">                        $taxonomy,
</span><span class="cx" style="display: block; padding: 0 10px">                        'post',
</span></span></pre></div>
<a id="trunktestsphpunitteststermphp"></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/term.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/term.php        2021-12-18 21:44:57 UTC (rev 52388)
+++ trunk/tests/phpunit/tests/term.php  2021-12-19 13:42:37 UTC (rev 52389)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -51,14 +51,17 @@
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_is_term_type() {
</span><span class="cx" style="display: block; padding: 0 10px">                // Insert a term.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $term = rand_str();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $term = 'term_new';
</ins><span class="cx" style="display: block; padding: 0 10px">                 $t    = wp_insert_term( $term, $this->taxonomy );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertIsArray( $t );
</span><span class="cx" style="display: block; padding: 0 10px">                $term_obj = get_term_by( 'name', $term, $this->taxonomy );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertEquals( $t['term_id'], term_exists( $term_obj->slug ) );
</del><span class="cx" style="display: block; padding: 0 10px"> 
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                $exists = term_exists( $term_obj->slug );
</ins><span class="cx" style="display: block; padding: 0 10px">                 // Clean up.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->assertTrue( wp_delete_term( $t['term_id'], $this->taxonomy ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $deleted = wp_delete_term( $t['term_id'], $this->taxonomy );
+
+               $this->assertEquals( $t['term_id'], $exists );
+               $this->assertTrue( $deleted );
</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="trunktestsphpunitteststhemephp"></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.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/theme.php       2021-12-18 21:44:57 UTC (rev 52388)
+++ trunk/tests/phpunit/tests/theme.php 2021-12-19 13:42:37 UTC (rev 52389)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -299,7 +299,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                // get_query_template()
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                                // Template file that doesn't exist.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                $this->assertSame( '', get_query_template( rand_str() ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         $this->assertSame( '', get_query_template( 'nonexistant' ) );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                                // Template files that do exist.
</span><span class="cx" style="display: block; padding: 0 10px">                                /*
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -333,8 +333,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_switch_theme_bogus() {
</span><span class="cx" style="display: block; padding: 0 10px">                // Try switching to a theme that doesn't exist.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $template = rand_str();
-               $style    = rand_str();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $template = 'some_template';
+               $style    = 'some_style';
</ins><span class="cx" style="display: block; padding: 0 10px">                 update_option( 'template', $template );
</span><span class="cx" style="display: block; padding: 0 10px">                update_option( 'stylesheet', $style );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</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-12-18 21:44:57 UTC (rev 52388)
+++ trunk/tests/phpunit/tests/user/author.php   2021-12-19 13:42:37 UTC (rev 52389)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -26,8 +26,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_author'  => self::$author_id,
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_status'  => 'publish',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                'post_content' => rand_str(),
-                               'post_title'   => rand_str(),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         'post_content' => 'content',
+                               'post_title'   => 'title',
</ins><span class="cx" style="display: block; padding: 0 10px">                                 'post_type'    => 'post',
</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="trunktestsphpunittestsuserphp"></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.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/user.php        2021-12-18 21:44:57 UTC (rev 52388)
+++ trunk/tests/phpunit/tests/user.php  2021-12-19 13:42:37 UTC (rev 52389)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -104,7 +104,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertSame( $val, get_user_option( $key, self::$author_id ) );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                // Change and get again.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $val2 = rand_str();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $val2 = 'baz';
</ins><span class="cx" style="display: block; padding: 0 10px">                 update_user_option( self::$author_id, $key, $val2 );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertSame( $val2, get_user_option( $key, self::$author_id ) );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -135,7 +135,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                // Delete by key AND value.
</span><span class="cx" style="display: block; padding: 0 10px">                update_user_meta( self::$author_id, $key, $val );
</span><span class="cx" style="display: block; padding: 0 10px">                // Incorrect key: key still exists.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                delete_user_meta( self::$author_id, $key, rand_str() );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         delete_user_meta( self::$author_id, $key, 'foo' );
</ins><span class="cx" style="display: block; padding: 0 10px">                 $this->assertSame( $val, get_user_meta( self::$author_id, $key, true ) );
</span><span class="cx" style="display: block; padding: 0 10px">                // Correct key: deleted.
</span><span class="cx" style="display: block; padding: 0 10px">                delete_user_meta( self::$author_id, $key, $val );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -149,9 +149,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_usermeta_array() {
</span><span class="cx" style="display: block; padding: 0 10px">                // Some values to set.
</span><span class="cx" style="display: block; padding: 0 10px">                $vals = array(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        rand_str() => 'val-' . rand_str(),
-                       rand_str() => 'val-' . rand_str(),
-                       rand_str() => 'val-' . rand_str(),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 'key0' => 'val0',
+                       'key1' => 'val1',
+                       'key2' => 'val2',
</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">                // There is already some stuff in the array.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -475,8 +475,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $post = array(
</span><span class="cx" style="display: block; padding: 0 10px">                        'post_author'  => self::$author_id,
</span><span class="cx" style="display: block; padding: 0 10px">                        'post_status'  => 'publish',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        'post_content' => rand_str(),
-                       'post_title'   => rand_str(),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 'post_content' => 'content',
+                       'post_title'   => 'title',
</ins><span class="cx" style="display: block; padding: 0 10px">                         'post_type'    => 'post',
</span><span class="cx" style="display: block; padding: 0 10px">                );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -636,7 +636,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_user_meta_error() {
</span><span class="cx" style="display: block; padding: 0 10px">                $id1 = wp_insert_user(
</span><span class="cx" style="display: block; padding: 0 10px">                        array(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                'user_login' => rand_str(),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         'user_login' => 'taco_burrito',
</ins><span class="cx" style="display: block; padding: 0 10px">                                 'user_pass'  => 'password',
</span><span class="cx" style="display: block; padding: 0 10px">                                'user_email' => 'taco@burrito.com',
</span><span class="cx" style="display: block; padding: 0 10px">                        )
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -645,7 +645,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $id2 = wp_insert_user(
</span><span class="cx" style="display: block; padding: 0 10px">                        array(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                'user_login' => rand_str(),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         'user_login' => 'taco_burrito2',
</ins><span class="cx" style="display: block; padding: 0 10px">                                 'user_pass'  => 'password',
</span><span class="cx" style="display: block; padding: 0 10px">                                'user_email' => 'taco@burrito.com',
</span><span class="cx" style="display: block; padding: 0 10px">                        )
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -826,9 +826,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_wp_insert_user_should_not_wipe_existing_password() {
</span><span class="cx" style="display: block; padding: 0 10px">                $user_details = array(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        'user_login' => rand_str(),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 'user_login' => 'jonsnow',
</ins><span class="cx" style="display: block; padding: 0 10px">                         'user_pass'  => 'password',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        'user_email' => rand_str() . '@example.com',
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 'user_email' => 'jonsnow@example.com',
</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">                $user_id = wp_insert_user( $user_details );
</span></span></pre></div>
<a id="trunktestsphpunittestsxmlrpcwpeditProfilephp"></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/editProfile.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/xmlrpc/wp/editProfile.php       2021-12-18 21:44:57 UTC (rev 52388)
+++ trunk/tests/phpunit/tests/xmlrpc/wp/editProfile.php 2021-12-19 13:42:37 UTC (rev 52389)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -16,13 +16,13 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $subscriber_id = $this->make_user_by_role( 'subscriber' );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $new_data = array(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        'first_name'   => rand_str(),
-                       'last_name'    => rand_str(),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 'first_name'   => 'firstname',
+                       'last_name'    => 'lastname',
</ins><span class="cx" style="display: block; padding: 0 10px">                         'url'          => 'http://www.example.org/subscriber',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        'display_name' => rand_str(),
-                       'nickname'     => rand_str(),
-                       'nicename'     => rand_str(),
-                       'bio'          => rand_str( 200 ),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 'display_name' => 'displayname',
+                       'nickname'     => 'nickname',
+                       'nicename'     => 'nicename',
+                       'bio'          => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.',
</ins><span class="cx" style="display: block; padding: 0 10px">                 );
</span><span class="cx" style="display: block; padding: 0 10px">                $result   = $this->myxmlrpcserver->wp_editProfile( array( 1, 'subscriber', 'subscriber', $new_data ) );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertNotIXRError( $result );
</span></span></pre></div>
<a id="trunktestsphpunittestsxmlrpcwpgetCommentphp"></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/getComment.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/xmlrpc/wp/getComment.php        2021-12-18 21:44:57 UTC (rev 52388)
+++ trunk/tests/phpunit/tests/xmlrpc/wp/getComment.php  2021-12-19 13:42:37 UTC (rev 52389)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -18,7 +18,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        'comment_author'       => 'Test commenter',
</span><span class="cx" style="display: block; padding: 0 10px">                        'comment_author_url'   => 'http://example.com/',
</span><span class="cx" style="display: block; padding: 0 10px">                        'comment_author_email' => 'example@example.com',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        'comment_content'      => rand_str( 100 ),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 'comment_content'      => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.',
</ins><span class="cx" style="display: block; padding: 0 10px">                 );
</span><span class="cx" style="display: block; padding: 0 10px">                self::$parent_comment_id   = wp_insert_comment( self::$parent_comment_data );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -28,7 +28,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        'comment_author_url'   => 'http://example.org/',
</span><span class="cx" style="display: block; padding: 0 10px">                        'comment_author_email' => 'example@example.org',
</span><span class="cx" style="display: block; padding: 0 10px">                        'comment_parent'       => self::$parent_comment_id,
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        'comment_content'      => rand_str( 100 ),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 'comment_content'      => 'Duis non neque cursus, commodo massa in, bibendum nisl.',
</ins><span class="cx" style="display: block; padding: 0 10px">                 );
</span><span class="cx" style="display: block; padding: 0 10px">                self::$child_comment_id   = wp_insert_comment( self::$child_comment_data );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span></span></pre></div>
<a id="trunktestsphpunittestsxmlrpcwpgetPostphp"></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/getPost.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/xmlrpc/wp/getPost.php   2021-12-18 21:44:57 UTC (rev 52388)
+++ trunk/tests/phpunit/tests/xmlrpc/wp/getPost.php     2021-12-19 13:42:37 UTC (rev 52389)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -14,9 +14,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $this->post_date_ts            = strtotime( '+1 day' );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->post_data               = array(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        'post_title'   => rand_str(),
-                       'post_content' => rand_str( 2000 ),
-                       'post_excerpt' => rand_str( 100 ),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 'post_title'   => 'Post Title',
+                       'post_content' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.',
+                       'post_excerpt' => 'Post Excerpt',
</ins><span class="cx" style="display: block; padding: 0 10px">                         'post_author'  => $this->make_user_by_role( 'author' ),
</span><span class="cx" style="display: block; padding: 0 10px">                        'post_date'    => date_format( date_create( "@{$this->post_date_ts}" ), 'Y-m-d H:i:s' ),
</span><span class="cx" style="display: block; padding: 0 10px">                );
</span></span></pre></div>
<a id="trunktestsphpunittestsxmlrpcwpnewCommentphp"></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/newComment.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/xmlrpc/wp/newComment.php        2021-12-18 21:44:57 UTC (rev 52388)
+++ trunk/tests/phpunit/tests/xmlrpc/wp/newComment.php  2021-12-19 13:42:37 UTC (rev 52389)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -55,7 +55,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                'administrator',
</span><span class="cx" style="display: block; padding: 0 10px">                                self::$posts['publish']->ID,
</span><span class="cx" style="display: block; padding: 0 10px">                                array(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                        'content' => rand_str( 100 ),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                 'content' => 'Content',
</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 class="lines" style="display: block; padding: 0 10px; color: #888">@@ -155,7 +155,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                'administrator',
</span><span class="cx" style="display: block; padding: 0 10px">                                $post->ID,
</span><span class="cx" style="display: block; padding: 0 10px">                                array(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                        'content' => rand_str( 100 ),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                 'content' => 'Content',
</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 class="lines" style="display: block; padding: 0 10px; color: #888">@@ -171,7 +171,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        'administrator',
</span><span class="cx" style="display: block; padding: 0 10px">                        self::$posts['publish']->ID,
</span><span class="cx" style="display: block; padding: 0 10px">                        array(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                'content' => rand_str( 100 ),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         'content' => 'Content',
</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>
</div>

</body>
</html>