<!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>[54088] trunk/tests/phpunit/tests: Tests: Correctly use the factory method.</title>
</head>
<body>

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

This replaces all non-static calls to the `WP_UnitTestCase_Base::factory()` method with static function calls, since the method is declared as static.

This is a consistency improvement for the test suite.

Follow up to <a href="https://core.trac.wordpress.org/changeset/35225">[35225]</a>, <a href="https://core.trac.wordpress.org/changeset/35242">[35242]</a>, <a href="https://core.trac.wordpress.org/changeset/49603">[49603]</a>, <a href="https://core.trac.wordpress.org/changeset/54087">[54087]</a>.

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

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunktestsphpunittestsadminbarphp">trunk/tests/phpunit/tests/adminbar.php</a></li>
<li><a href="#trunktestsphpunittestsajaxCustomizeManagerphp">trunk/tests/phpunit/tests/ajax/CustomizeManager.php</a></li>
<li><a href="#trunktestsphpunittestsajaxCustomizeMenusphp">trunk/tests/phpunit/tests/ajax/CustomizeMenus.php</a></li>
<li><a href="#trunktestsphpunittestsauthphp">trunk/tests/phpunit/tests/auth.php</a></li>
<li><a href="#trunktestsphpunittestsblockscontextphp">trunk/tests/phpunit/tests/blocks/context.php</a></li>
<li><a href="#trunktestsphpunittestsblockseditorphp">trunk/tests/phpunit/tests/blocks/editor.php</a></li>
<li><a href="#trunktestsphpunittestscommentcheckCommentphp">trunk/tests/phpunit/tests/comment/checkComment.php</a></li>
<li><a href="#trunktestsphpunittestscustomizecontrolphp">trunk/tests/phpunit/tests/customize/control.php</a></li>
<li><a href="#trunktestsphpunittestscustomizecustomcsssettingphp">trunk/tests/phpunit/tests/customize/custom-css-setting.php</a></li>
<li><a href="#trunktestsphpunittestscustomizemanagerphp">trunk/tests/phpunit/tests/customize/manager.php</a></li>
<li><a href="#trunktestsphpunittestscustomizenavmenusphp">trunk/tests/phpunit/tests/customize/nav-menus.php</a></li>
<li><a href="#trunktestsphpunittestscustomizesettingphp">trunk/tests/phpunit/tests/customize/setting.php</a></li>
<li><a href="#trunktestsphpunittestsfeedrss2php">trunk/tests/phpunit/tests/feed/rss2.php</a></li>
<li><a href="#trunktestsphpunittestsformattingexcerptRemoveBlocksphp">trunk/tests/phpunit/tests/formatting/excerptRemoveBlocks.php</a></li>
<li><a href="#trunktestsphpunittestsformattingwpTargetedLinkRelphp">trunk/tests/phpunit/tests/formatting/wpTargetedLinkRel.php</a></li>
<li><a href="#trunktestsphpunittestsgeneraltemplatephp">trunk/tests/phpunit/tests/general/template.php</a></li>
<li><a href="#trunktestsphpunittestsl10ngetUserLocalephp">trunk/tests/phpunit/tests/l10n/getUserLocale.php</a></li>
<li><a href="#trunktestsphpunittestsl10nwpLocaleSwitcherphp">trunk/tests/phpunit/tests/l10n/wpLocaleSwitcher.php</a></li>
<li><a href="#trunktestsphpunittestsl10nphp">trunk/tests/phpunit/tests/l10n.php</a></li>
<li><a href="#trunktestsphpunittestsmultisitenetworkphp">trunk/tests/phpunit/tests/multisite/network.php</a></li>
<li><a href="#trunktestsphpunittestsmultisitesitephp">trunk/tests/phpunit/tests/multisite/site.php</a></li>
<li><a href="#trunktestsphpunittestsoembedWpEmbedphp">trunk/tests/phpunit/tests/oembed/WpEmbed.php</a></li>
<li><a href="#trunktestsphpunittestsoembedcontrollerphp">trunk/tests/phpunit/tests/oembed/controller.php</a></li>
<li><a href="#trunktestsphpunittestsoembedheadersphp">trunk/tests/phpunit/tests/oembed/headers.php</a></li>
<li><a href="#trunktestsphpunittestspostisPostPubliclyViewablephp">trunk/tests/phpunit/tests/post/isPostPubliclyViewable.php</a></li>
<li><a href="#trunktestsphpunittestspostnavmenuphp">trunk/tests/phpunit/tests/post/nav-menu.php</a></li>
<li><a href="#trunktestsphpunittestspostwpInsertPostphp">trunk/tests/phpunit/tests/post/wpInsertPost.php</a></li>
<li><a href="#trunktestsphpunittestspostphp">trunk/tests/phpunit/tests/post.php</a></li>
<li><a href="#trunktestsphpunittestsrestapirestpostscontrollerphp">trunk/tests/phpunit/tests/rest-api/rest-posts-controller.php</a></li>
<li><a href="#trunktestsphpunittestsrestapiwpRestBlockPatternCategoriesControllerphp">trunk/tests/phpunit/tests/rest-api/wpRestBlockPatternCategoriesController.php</a></li>
<li><a href="#trunktestsphpunittestsrestapiwpRestBlockPatternsControllerphp">trunk/tests/phpunit/tests/rest-api/wpRestBlockPatternsController.php</a></li>
<li><a href="#trunktestsphpunitteststermisTermPubliclyViewablephp">trunk/tests/phpunit/tests/term/isTermPubliclyViewable.php</a></li>
<li><a href="#trunktestsphpunitteststermtermCountsphp">trunk/tests/phpunit/tests/term/termCounts.php</a></li>
<li><a href="#trunktestsphpunitteststhemephp">trunk/tests/phpunit/tests/theme.php</a></li>
<li><a href="#trunktestsphpunittestsuserphp">trunk/tests/phpunit/tests/user.php</a></li>
<li><a href="#trunktestsphpunittestswidgetswpWidgetCustomHtmlphp">trunk/tests/phpunit/tests/widgets/wpWidgetCustomHtml.php</a></li>
<li><a href="#trunktestsphpunittestswidgetswpWidgetMediaphp">trunk/tests/phpunit/tests/widgets/wpWidgetMedia.php</a></li>
<li><a href="#trunktestsphpunittestswidgetswpWidgetTextphp">trunk/tests/phpunit/tests/widgets/wpWidgetText.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunktestsphpunittestsadminbarphp"></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/adminbar.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/adminbar.php    2022-09-06 22:00:11 UTC (rev 54087)
+++ trunk/tests/phpunit/tests/adminbar.php      2022-09-06 22:03:10 UTC (rev 54088)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -656,7 +656,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $this->go_to( home_url( "/?customize_changeset_uuid=$uuid" ) );
</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><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->factory()->post->create(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         self::factory()->post->create(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_type'   => 'customize_changeset',
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_status' => 'auto-draft',
</span></span></pre></div>
<a id="trunktestsphpunittestsajaxCustomizeManagerphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/ajax/CustomizeManager.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/ajax/CustomizeManager.php       2022-09-06 22:00:11 UTC (rev 54087)
+++ trunk/tests/phpunit/tests/ajax/CustomizeManager.php 2022-09-06 22:03:10 UTC (rev 54088)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -307,7 +307,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_save_success_publish_edit() {
</span><span class="cx" style="display: block; padding: 0 10px">                $uuid = wp_generate_uuid4();
</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_id      = $this->factory()->post->create(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $post_id      = self::factory()->post->create(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_name'    => $uuid,
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_title'   => 'Original',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -346,7 +346,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_success_save_post_date() {
</span><span class="cx" style="display: block; padding: 0 10px">                $uuid         = wp_generate_uuid4();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $post_id      = $this->factory()->post->create(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $post_id      = self::factory()->post->create(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_name'    => $uuid,
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_title'   => 'Original',
</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">        public function test_save_autosave() {
</span><span class="cx" style="display: block; padding: 0 10px">                $uuid = wp_generate_uuid4();
</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_id = $this->factory()->post->create(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $post_id = self::factory()->post->create(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_name'    => $uuid,
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_type'    => 'customize_changeset',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -614,12 +614,12 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertFalse( $this->_last_response_parsed['success'] );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertSame( 'no_auto_draft_to_delete', $this->_last_response_parsed['data'] );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $other_user_id = $this->factory()->user->create();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $other_user_id = self::factory()->user->create();
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                // Create auto-drafts.
</span><span class="cx" style="display: block; padding: 0 10px">                $user_auto_draft_ids = array();
</span><span class="cx" style="display: block; padding: 0 10px">                for ( $i = 0; $i < 3; $i++ ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        $user_auto_draft_ids[] = $this->factory()->post->create(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 $user_auto_draft_ids[] = self::factory()->post->create(
</ins><span class="cx" style="display: block; padding: 0 10px">                                 array(
</span><span class="cx" style="display: block; padding: 0 10px">                                        'post_name'    => wp_generate_uuid4(),
</span><span class="cx" style="display: block; padding: 0 10px">                                        'post_type'    => 'customize_changeset',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -631,7 +631,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span><span class="cx" style="display: block; padding: 0 10px">                $other_user_auto_draft_ids = array();
</span><span class="cx" style="display: block; padding: 0 10px">                for ( $i = 0; $i < 3; $i++ ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        $other_user_auto_draft_ids[] = $this->factory()->post->create(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 $other_user_auto_draft_ids[] = self::factory()->post->create(
</ins><span class="cx" style="display: block; padding: 0 10px">                                 array(
</span><span class="cx" style="display: block; padding: 0 10px">                                        'post_name'    => wp_generate_uuid4(),
</span><span class="cx" style="display: block; padding: 0 10px">                                        'post_type'    => 'customize_changeset',
</span></span></pre></div>
<a id="trunktestsphpunittestsajaxCustomizeMenusphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/ajax/CustomizeMenus.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/ajax/CustomizeMenus.php 2022-09-06 22:00:11 UTC (rev 54087)
+++ trunk/tests/phpunit/tests/ajax/CustomizeMenus.php   2022-09-06 22:03:10 UTC (rev 54088)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -706,7 +706,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertSame( 'bad_nonce', $response['data'] );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                // Bad nonce.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                wp_set_current_user( $this->factory()->user->create( array( 'role' => 'subscriber' ) ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         wp_set_current_user( self::factory()->user->create( array( 'role' => 'subscriber' ) ) );
</ins><span class="cx" style="display: block; padding: 0 10px">                 $_POST                = wp_slash(
</span><span class="cx" style="display: block; padding: 0 10px">                        array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'customize-menus-nonce' => wp_create_nonce( 'customize-menus' ),
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -719,7 +719,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertSame( 'customize_not_allowed', $response['data'] );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                // Missing params.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                wp_set_current_user( $this->factory()->user->create( array( 'role' => 'administrator' ) ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         wp_set_current_user( self::factory()->user->create( array( 'role' => 'administrator' ) ) );
</ins><span class="cx" style="display: block; padding: 0 10px">                 $_POST                = wp_slash(
</span><span class="cx" style="display: block; padding: 0 10px">                        array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'customize-menus-nonce' => wp_create_nonce( 'customize-menus' ),
</span></span></pre></div>
<a id="trunktestsphpunittestsauthphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/auth.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/auth.php        2022-09-06 22:00:11 UTC (rev 54087)
+++ trunk/tests/phpunit/tests/auth.php  2022-09-06 22:03:10 UTC (rev 54088)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -421,7 +421,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        'user_email' => "mail\'@example.com",
</span><span class="cx" style="display: block; padding: 0 10px">                        'user_pass'  => 'password',
</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->factory()->user->create( $user_args );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         self::factory()->user->create( $user_args );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $_POST['log'] = $user_args['user_email'];
</span><span class="cx" style="display: block; padding: 0 10px">                $_POST['pwd'] = $user_args['user_pass'];
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -436,7 +436,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">         * @covers ::wp_validate_application_password
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_application_password_authentication() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $user_id = $this->factory()->user->create(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $user_id = self::factory()->user->create(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'user_login' => 'http_auth_login',
</span><span class="cx" style="display: block; padding: 0 10px">                                'user_pass'  => 'http_auth_pass', // Shouldn't be allowed for API login.
</span></span></pre></div>
<a id="trunktestsphpunittestsblockscontextphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/blocks/context.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/blocks/context.php      2022-09-06 22:00:11 UTC (rev 54087)
+++ trunk/tests/phpunit/tests/blocks/context.php        2022-09-06 22:03:10 UTC (rev 54088)
</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">                        'post_excerpt' => '',
</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">-                $post = $this->factory()->post->create_and_get( $args );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $post = self::factory()->post->create_and_get( $args );
</ins><span class="cx" style="display: block; padding: 0 10px">                 setup_postdata( $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="trunktestsphpunittestsblockseditorphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/blocks/editor.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/blocks/editor.php       2022-09-06 22:00:11 UTC (rev 54087)
+++ trunk/tests/phpunit/tests/blocks/editor.php 2022-09-06 22:03:10 UTC (rev 54088)
</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">                        'post_title' => 'Example',
</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">-                $post = $this->factory()->post->create_and_get( $args );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $post = self::factory()->post->create_and_get( $args );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                global $wp_rest_server;
</span><span class="cx" style="display: block; padding: 0 10px">                $wp_rest_server = new Spy_REST_Server;
</span></span></pre></div>
<a id="trunktestsphpunittestscommentcheckCommentphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/comment/checkComment.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/comment/checkComment.php        2022-09-06 22:00:11 UTC (rev 54087)
+++ trunk/tests/phpunit/tests/comment/checkComment.php  2022-09-06 22:03:10 UTC (rev 54088)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -138,7 +138,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">         * @ticket 28603
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_should_return_true_when_comment_previously_approved_is_enabled_and_user_has_previously_approved_comments_with_different_email() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $subscriber_id = $this->factory()->user->create(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $subscriber_id = self::factory()->user->create(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'role'  => 'subscriber',
</span><span class="cx" style="display: block; padding: 0 10px">                                'email' => 'sub@example.com',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -170,7 +170,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">         * @ticket 28603
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_should_return_false_when_comment_previously_approved_is_enabled_and_user_does_not_have_a_previously_approved_comment_with_any_email() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $subscriber_id = $this->factory()->user->create(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $subscriber_id = self::factory()->user->create(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'role'  => 'subscriber',
</span><span class="cx" style="display: block; padding: 0 10px">                                'email' => 'zig@example.com',
</span></span></pre></div>
<a id="trunktestsphpunittestscustomizecontrolphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/customize/control.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/customize/control.php   2022-09-06 22:00:11 UTC (rev 54087)
+++ trunk/tests/phpunit/tests/customize/control.php     2022-09-06 22:03:10 UTC (rev 54088)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -26,7 +26,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">-                wp_set_current_user( $this->factory()->user->create( array( 'role' => 'administrator' ) ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         wp_set_current_user( self::factory()->user->create( array( 'role' => 'administrator' ) ) );
</ins><span class="cx" style="display: block; padding: 0 10px">                 require_once ABSPATH . WPINC . '/class-wp-customize-manager.php';
</span><span class="cx" style="display: block; padding: 0 10px">                $GLOBALS['wp_customize'] = new WP_Customize_Manager();
</span><span class="cx" style="display: block; padding: 0 10px">                $this->wp_customize      = $GLOBALS['wp_customize'];
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -138,7 +138,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertStringContainsString( '<option value="0">', $content, 'Dropdown-pages renders select even without any pages published.' );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                // Ensure that auto-draft pages are included if they are among the nav_menus_created_posts.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $auto_draft_page_id = $this->factory()->post->create(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $auto_draft_page_id = self::factory()->post->create(
</ins><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_status' => 'auto-draft',
</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">                                'post_title'  => 'Auto Draft Page',
</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">-                $this->factory()->post->create(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         self::factory()->post->create(
</ins><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_status' => 'auto-draft',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -152,7 +152,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_title'  => 'Orphan Auto Draft Page',
</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">-                $auto_draft_post_id = $this->factory()->post->create(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $auto_draft_post_id = self::factory()->post->create(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_type'   => 'post',
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_status' => 'auto-draft',
</span></span></pre></div>
<a id="trunktestsphpunittestscustomizecustomcsssettingphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/customize/custom-css-setting.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/customize/custom-css-setting.php        2022-09-06 22:00:11 UTC (rev 54087)
+++ trunk/tests/phpunit/tests/customize/custom-css-setting.php  2022-09-06 22:03:10 UTC (rev 54088)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -120,7 +120,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertNull( wp_get_custom_css_post( 'twentyten' ) );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $original_css      = 'body { color: black; }';
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $post_id           = $this->factory()->post->create(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $post_id           = self::factory()->post->create(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_title'   => $this->setting->stylesheet,
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_name'    => $this->setting->stylesheet,
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -130,7 +130,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">                $twentyten_css     = 'body { color: red; }';
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $twentyten_post_id = $this->factory()->post->create(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $twentyten_post_id = self::factory()->post->create(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_title'   => 'twentyten',
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_name'    => 'twentyten',
</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">                $this->setting->default = '/*default*/';
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertSame( '/*default*//*filtered*/', $this->setting->value() );
</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->factory()->post->create(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         self::factory()->post->create(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_title'   => $this->setting->stylesheet,
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_name'    => $this->setting->stylesheet,
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -310,7 +310,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_update_filter() {
</span><span class="cx" style="display: block; padding: 0 10px">                $original_css = 'body { color:red; }';
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $post_id      = $this->factory()->post->create(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $post_id      = self::factory()->post->create(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_title'   => $this->setting->stylesheet,
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_name'    => $this->setting->stylesheet,
</span></span></pre></div>
<a id="trunktestsphpunittestscustomizemanagerphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/customize/manager.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/customize/manager.php   2022-09-06 22:00:11 UTC (rev 54087)
+++ trunk/tests/phpunit/tests/customize/manager.php     2022-09-06 22:03:10 UTC (rev 54088)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -162,7 +162,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_constructor_deferred_changeset_uuid() {
</span><span class="cx" style="display: block; padding: 0 10px">                wp_set_current_user( self::$admin_user_id );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $other_admin_user_id = $this->factory()->user->create( array( 'role' => 'admin' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $other_admin_user_id = self::factory()->user->create( array( 'role' => 'admin' ) );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $data = array(
</span><span class="cx" style="display: block; padding: 0 10px">                        'blogname' => array(
</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">                );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $uuid1 = wp_generate_uuid4();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->factory()->post->create(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         self::factory()->post->create(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_type'     => 'customize_changeset',
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_name'     => $uuid1,
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -187,7 +187,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                 * as in non-branching mode there should only be one pending changeset at a time.
</span><span class="cx" style="display: block; padding: 0 10px">                 */
</span><span class="cx" style="display: block; padding: 0 10px">                $uuid2   = wp_generate_uuid4();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $post_id = $this->factory()->post->create(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $post_id = self::factory()->post->create(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_type'     => 'customize_changeset',
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_name'     => $uuid2,
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -424,7 +424,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_find_changeset_post_id() {
</span><span class="cx" style="display: block; padding: 0 10px">                $uuid    = wp_generate_uuid4();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $post_id = $this->factory()->post->create(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $post_id = self::factory()->post->create(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_name'    => $uuid,
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_type'    => 'customize_changeset',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -454,7 +454,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $uuid         = wp_generate_uuid4();
</span><span class="cx" style="display: block; padding: 0 10px">                $wp_customize = new WP_Customize_Manager( array( 'changeset_uuid' => $uuid ) );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $post_id      = $this->factory()->post->create(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $post_id      = self::factory()->post->create(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_name'    => $uuid,
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_type'    => 'customize_changeset',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -482,7 +482,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        'blogname'        => array( 'value' => 'Hello World' ),
</span><span class="cx" style="display: block; padding: 0 10px">                        'blogdescription' => array( 'value' => 'Greet the world' ),
</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->factory()->post->create(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         self::factory()->post->create(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_name'    => $uuid,
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_type'    => 'customize_changeset',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -565,7 +565,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_name'      => 'canola',
</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">-                $existing_published_home_page_id   = $this->factory()->post->create(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $existing_published_home_page_id   = self::factory()->post->create(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_name'   => 'home',
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_type'   => 'page',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -572,7 +572,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_status' => 'publish',
</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">-                $existing_auto_draft_about_page_id = $this->factory()->post->create(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $existing_auto_draft_about_page_id = self::factory()->post->create(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_name'   => 'about',
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_type'   => 'page',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -820,7 +820,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_import_theme_starter_content_with_nested_arrays() {
</span><span class="cx" style="display: block; padding: 0 10px">                wp_set_current_user( self::$admin_user_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">-                $existing_published_home_page_id = $this->factory()->post->create(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $existing_published_home_page_id = self::factory()->post->create(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_name'   => 'home',
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_type'   => 'page',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1878,7 +1878,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $r = $wp_customize->save_changeset_post(
</span><span class="cx" style="display: block; padding: 0 10px">                        array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'autosave' => true,
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                'user_id'  => $this->factory()->user->create( array( 'role' => 'administrator' ) ),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         'user_id'  => self::factory()->user->create( array( 'role' => 'administrator' ) ),
</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">                $this->assertSame( 'illegal_autosave_with_non_current_user', $r->get_error_code() );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2031,7 +2031,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertGreaterThan( 2, count( $new_sidebars_widgets['sidebar-1'] ) );
</span><span class="cx" style="display: block; padding: 0 10px">                $new_sidebar_1 = array_reverse( $new_sidebars_widgets['sidebar-1'] );
</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_id = $this->factory()->post->create(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $post_id = self::factory()->post->create(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_type'    => 'customize_changeset',
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_status'  => 'draft',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2335,7 +2335,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                'value' => 'Changeset Tagline',
</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">-                $this->factory()->post->create(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         self::factory()->post->create(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_type'    => 'customize_changeset',
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_status'  => 'auto-draft',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2830,7 +2830,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertFalse( $this->manager->has_published_pages() );
</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->factory()->post->create(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         self::factory()->post->create(
</ins><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_status' => 'private',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2838,7 +2838,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertFalse( $this->manager->has_published_pages() );
</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->factory()->post->create(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         self::factory()->post->create(
</ins><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_status' => 'publish',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2864,7 +2864,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $setting_id = 'nav_menus_created_posts';
</span><span class="cx" style="display: block; padding: 0 10px">                $setting    = $this->manager->get_setting( $setting_id );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertInstanceOf( 'WP_Customize_Filter_Setting', $setting );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $auto_draft_page = $this->factory()->post->create(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $auto_draft_page = self::factory()->post->create(
</ins><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_status' => 'auto-draft',
</span></span></pre></div>
<a id="trunktestsphpunittestscustomizenavmenusphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/customize/nav-menus.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/customize/nav-menus.php 2022-09-06 22:00:11 UTC (rev 54087)
+++ trunk/tests/phpunit/tests/customize/nav-menus.php   2022-09-06 22:03:10 UTC (rev 54088)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -851,11 +851,11 @@
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_sanitize_nav_menus_created_posts() {
</span><span class="cx" style="display: block; padding: 0 10px">                $menus                 = new WP_Customize_Nav_Menus( $this->wp_customize );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $contributor_user_id   = $this->factory()->user->create( array( 'role' => 'contributor' ) );
-               $author_user_id        = $this->factory()->user->create( array( 'role' => 'author' ) );
-               $administrator_user_id = $this->factory()->user->create( array( 'role' => 'administrator' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $contributor_user_id   = self::factory()->user->create( array( 'role' => 'contributor' ) );
+               $author_user_id        = self::factory()->user->create( array( 'role' => 'author' ) );
+               $administrator_user_id = self::factory()->user->create( array( 'role' => 'administrator' ) );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $contributor_post_id   = $this->factory()->post->create(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $contributor_post_id   = self::factory()->post->create(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_status' => 'auto-draft',
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_title'  => 'Contributor Post',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -863,7 +863,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_author' => $contributor_user_id,
</span><span class="cx" style="display: block; padding: 0 10px">                        )
</span><span class="cx" style="display: block; padding: 0 10px">                );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $author_post_id        = $this->factory()->post->create(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $author_post_id        = self::factory()->post->create(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_status' => 'auto-draft',
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_title'  => 'Author Post',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -871,7 +871,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_author' => $author_user_id,
</span><span class="cx" style="display: block; padding: 0 10px">                        )
</span><span class="cx" style="display: block; padding: 0 10px">                );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $administrator_post_id = $this->factory()->post->create(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $administrator_post_id = self::factory()->post->create(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_status' => 'auto-draft',
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_title'  => 'Admin Post',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -880,7 +880,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">-                $draft_post_id = $this->factory()->post->create(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $draft_post_id = self::factory()->post->create(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_status' => 'draft',
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_title'  => 'Draft',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -888,7 +888,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">-                $private_post_id = $this->factory()->post->create(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $private_post_id = self::factory()->post->create(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_status' => 'private',
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_title'  => 'Private',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -990,7 +990,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $post_ids[]      = $r->ID;
</span><span class="cx" style="display: block; padding: 0 10px">                $trashed_post_id = $r->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">-                $pre_published_post_id = $this->factory()->post->create( array( 'post_status' => 'publish' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $pre_published_post_id = self::factory()->post->create( array( 'post_status' => 'publish' ) );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $setting_id = 'nav_menus_created_posts';
</span><span class="cx" style="display: block; padding: 0 10px">                $this->wp_customize->set_post_value( $setting_id, array_merge( $post_ids, array( $pre_published_post_id ) ) );
</span></span></pre></div>
<a id="trunktestsphpunittestscustomizesettingphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/customize/setting.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/customize/setting.php   2022-09-06 22:00:11 UTC (rev 54087)
+++ trunk/tests/phpunit/tests/customize/setting.php     2022-09-06 22:03:10 UTC (rev 54088)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -137,7 +137,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">         * @see WP_Customize_Setting::value()
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_preview_standard_types_non_multidimensional() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                wp_set_current_user( $this->factory()->user->create( array( 'role' => 'administrator' ) ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         wp_set_current_user( self::factory()->user->create( array( 'role' => 'administrator' ) ) );
</ins><span class="cx" style="display: block; padding: 0 10px">                 $_POST['customized'] = wp_slash( wp_json_encode( $this->post_data_overrides ) );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                // Try non-multidimensional settings.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -216,7 +216,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">         * @see WP_Customize_Setting::value()
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_preview_standard_types_multidimensional() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                wp_set_current_user( $this->factory()->user->create( array( 'role' => 'administrator' ) ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         wp_set_current_user( self::factory()->user->create( array( 'role' => 'administrator' ) ) );
</ins><span class="cx" style="display: block; padding: 0 10px">                 $_POST['customized'] = wp_slash( wp_json_encode( $this->post_data_overrides ) );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                foreach ( $this->standard_type_configs as $type => $type_options ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -362,7 +362,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">         * @see WP_Customize_Setting::preview()
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_preview_custom_type() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                wp_set_current_user( $this->factory()->user->create( array( 'role' => 'administrator' ) ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         wp_set_current_user( self::factory()->user->create( array( 'role' => 'administrator' ) ) );
</ins><span class="cx" style="display: block; padding: 0 10px">                 $type                = 'custom_type';
</span><span class="cx" style="display: block; padding: 0 10px">                $post_data_overrides = array(
</span><span class="cx" style="display: block; padding: 0 10px">                        "unset_{$type}_with_post_value" => "unset_{$type}_without_post_value\\o/",
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -551,7 +551,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">         * @ticket 31428
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_is_current_blog_previewed() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                wp_set_current_user( $this->factory()->user->create( array( 'role' => 'administrator' ) ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         wp_set_current_user( self::factory()->user->create( array( 'role' => 'administrator' ) ) );
</ins><span class="cx" style="display: block; padding: 0 10px">                 $type       = 'option';
</span><span class="cx" style="display: block; padding: 0 10px">                $name       = 'blogname';
</span><span class="cx" style="display: block; padding: 0 10px">                $post_value = __FUNCTION__;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -743,7 +743,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">         * @ticket 37294
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_multidimensional_value_when_previewed() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                wp_set_current_user( $this->factory()->user->create( array( 'role' => 'administrator' ) ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         wp_set_current_user( self::factory()->user->create( array( 'role' => 'administrator' ) ) );
</ins><span class="cx" style="display: block; padding: 0 10px">                 WP_Customize_Setting::reset_aggregated_multidimensionals();
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $initial_value = 456;
</span></span></pre></div>
<a id="trunktestsphpunittestsfeedrss2php"></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/feed/rss2.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/feed/rss2.php   2022-09-06 22:00:11 UTC (rev 54087)
+++ trunk/tests/phpunit/tests/feed/rss2.php     2022-09-06 22:03:10 UTC (rev 54088)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -522,10 +522,10 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $yesterday = gmdate( 'Y-m-d H:i:s', strtotime( '-1 day' ) );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                // Create a post dated last week.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $post_id = $this->factory()->post->create( array( 'post_date' => $last_week ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $post_id = self::factory()->post->create( array( 'post_date' => $last_week ) );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                // Create a comment dated yesterday.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->factory()->comment->create(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         self::factory()->comment->create(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'comment_post_ID' => $post_id,
</span><span class="cx" style="display: block; padding: 0 10px">                                'comment_date'    => $yesterday,
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -561,10 +561,10 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $yesterday = gmdate( 'Y-m-d H:i:s', strtotime( '-1 day' ) );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                // Create a post dated last week.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $post_id = $this->factory()->post->create( array( 'post_date' => $last_week ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $post_id = self::factory()->post->create( array( 'post_date' => $last_week ) );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                // Create a comment dated yesterday.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->factory()->comment->create(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         self::factory()->comment->create(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'comment_post_ID' => $post_id,
</span><span class="cx" style="display: block; padding: 0 10px">                                'comment_date'    => $yesterday,
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -601,10 +601,10 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $today     = gmdate( '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">                // Create a post dated last week.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $post_id = $this->factory()->post->create( array( 'post_date' => $last_week ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $post_id = self::factory()->post->create( array( 'post_date' => $last_week ) );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                // Create a comment dated yesterday.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->factory()->comment->create(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         self::factory()->comment->create(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'comment_post_ID' => $post_id,
</span><span class="cx" style="display: block; padding: 0 10px">                                'comment_date'    => $yesterday,
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -612,7 +612,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">                // Create a post dated today.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->factory()->post->create( array( 'post_date' => $today ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         self::factory()->post->create( array( 'post_date' => $today ) );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                // The Last-Modified header should have the date from today's post when it is the latest update.
</span><span class="cx" style="display: block; padding: 0 10px">                add_filter(
</span></span></pre></div>
<a id="trunktestsphpunittestsformattingexcerptRemoveBlocksphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/formatting/excerptRemoveBlocks.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/formatting/excerptRemoveBlocks.php      2022-09-06 22:00:11 UTC (rev 54087)
+++ trunk/tests/phpunit/tests/formatting/excerptRemoveBlocks.php        2022-09-06 22:03:10 UTC (rev 54088)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -60,7 +60,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">-                self::$post_id = $this->factory()->post->create(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         self::$post_id = self::factory()->post->create(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_excerpt' => '', // Empty excerpt, so it has to be generated.
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_content' => '<!-- wp:core/fake /-->',
</span></span></pre></div>
<a id="trunktestsphpunittestsformattingwpTargetedLinkRelphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/formatting/wpTargetedLinkRel.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/formatting/wpTargetedLinkRel.php        2022-09-06 22:00:11 UTC (rev 54087)
+++ trunk/tests/phpunit/tests/formatting/wpTargetedLinkRel.php  2022-09-06 22:03:10 UTC (rev 54088)
</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">                $content  = '<p>Links: <a href="/" target="_blank">No rel</a></p>';
</span><span class="cx" style="display: block; padding: 0 10px">                $expected = '<p>Links: <a href="/" target="_blank" rel="noopener">No rel</a></p>';
</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 = $this->factory()->post->create_and_get(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $post = self::factory()->post->create_and_get(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_content' => $content,
</span><span class="cx" style="display: block; padding: 0 10px">                        )
</span></span></pre></div>
<a id="trunktestsphpunittestsgeneraltemplatephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/general/template.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/general/template.php    2022-09-06 22:00:11 UTC (rev 54087)
+++ trunk/tests/phpunit/tests/general/template.php      2022-09-06 22:03:10 UTC (rev 54088)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -180,7 +180,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_customize_preview_wp_site_icon_empty() {
</span><span class="cx" style="display: block; padding: 0 10px">                global $wp_customize;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                wp_set_current_user( $this->factory()->user->create( array( 'role' => 'administrator' ) ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         wp_set_current_user( self::factory()->user->create( array( 'role' => 'administrator' ) ) );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                require_once ABSPATH . WPINC . '/class-wp-customize-manager.php';
</span><span class="cx" style="display: block; padding: 0 10px">                $wp_customize = new WP_Customize_Manager();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -198,7 +198,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_customize_preview_wp_site_icon_dirty() {
</span><span class="cx" style="display: block; padding: 0 10px">                global $wp_customize;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                wp_set_current_user( $this->factory()->user->create( array( 'role' => 'administrator' ) ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         wp_set_current_user( self::factory()->user->create( array( 'role' => 'administrator' ) ) );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                require_once ABSPATH . WPINC . '/class-wp-customize-manager.php';
</span><span class="cx" style="display: block; padding: 0 10px">                $wp_customize = new WP_Customize_Manager();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -598,18 +598,18 @@
</span><span class="cx" style="display: block; padding: 0 10px">         * @covers ::get_the_archive_title
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_get_the_archive_title_is_correct_for_author_queries() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $user_with_posts    = $this->factory()->user->create_and_get(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $user_with_posts    = self::factory()->user->create_and_get(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'role' => 'author',
</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">-                $user_with_no_posts = $this->factory()->user->create_and_get(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $user_with_no_posts = self::factory()->user->create_and_get(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'role' => 'author',
</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">-                $this->factory()->post->create(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         self::factory()->post->create(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_author' => $user_with_posts->ID,
</span><span class="cx" style="display: block; padding: 0 10px">                        )
</span></span></pre></div>
<a id="trunktestsphpunittestsl10ngetUserLocalephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/l10n/getUserLocale.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/l10n/getUserLocale.php  2022-09-06 22:00:11 UTC (rev 54087)
+++ trunk/tests/phpunit/tests/l10n/getUserLocale.php    2022-09-06 22:03:10 UTC (rev 54088)
</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->user_id = $this->factory()->user->create(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $this->user_id = self::factory()->user->create(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'role'   => 'administrator',
</span><span class="cx" style="display: block; padding: 0 10px">                                'locale' => 'de_DE',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -82,7 +82,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_user_id_argument_with_id() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $user_id = $this->factory()->user->create(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $user_id = self::factory()->user->create(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'locale' => 'es_ES',
</span><span class="cx" style="display: block; padding: 0 10px">                        )
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -99,7 +99,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_user_id_argument_with_wp_user_object() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $user_id = $this->factory()->user->create(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $user_id = self::factory()->user->create(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'locale' => 'es_ES',
</span><span class="cx" style="display: block; padding: 0 10px">                        )
</span></span></pre></div>
<a id="trunktestsphpunittestsl10nwpLocaleSwitcherphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/l10n/wpLocaleSwitcher.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/l10n/wpLocaleSwitcher.php       2022-09-06 22:00:11 UTC (rev 54087)
+++ trunk/tests/phpunit/tests/l10n/wpLocaleSwitcher.php 2022-09-06 22:03:10 UTC (rev 54088)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -326,7 +326,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $site_locale = get_locale();
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $user_id = $this->factory()->user->create(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $user_id = self::factory()->user->create(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'role'   => 'administrator',
</span><span class="cx" style="display: block; padding: 0 10px">                                'locale' => 'de_DE',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -378,7 +378,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $site_locale = get_locale();
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $user_id = $this->factory()->user->create(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $user_id = self::factory()->user->create(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'role'   => 'administrator',
</span><span class="cx" style="display: block; padding: 0 10px">                                'locale' => 'de_DE',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -430,7 +430,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $site_locale = get_locale();
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $user_id = $this->factory()->user->create(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $user_id = self::factory()->user->create(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'role'   => 'administrator',
</span><span class="cx" style="display: block; padding: 0 10px">                                'locale' => 'en_GB',
</span></span></pre></div>
<a id="trunktestsphpunittestsl10nphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/l10n.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/l10n.php        2022-09-06 22:00:11 UTC (rev 54087)
+++ trunk/tests/phpunit/tests/l10n.php  2022-09-06 22:03:10 UTC (rev 54088)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -309,7 +309,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        'post_excerpt' => '',
</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">-                $post = $this->factory()->post->create_and_get( $args );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $post = self::factory()->post->create_and_get( $args );
</ins><span class="cx" style="display: block; padding: 0 10px">                 setup_postdata( $post );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $expect = "<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat [&hellip;]</p>\n";
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -335,7 +335,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        'post_excerpt' => '',
</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">-                $post = $this->factory()->post->create_and_get( $args );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $post = self::factory()->post->create_and_get( $args );
</ins><span class="cx" style="display: block; padding: 0 10px">                 setup_postdata( $post );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $expect = "<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore  [&hellip;]</p>\n";
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -361,7 +361,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        'post_excerpt' => '',
</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">-                $post = $this->factory()->post->create_and_get( $args );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $post = self::factory()->post->create_and_get( $args );
</ins><span class="cx" style="display: block; padding: 0 10px">                 setup_postdata( $post );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $expect = '<p>' . str_repeat( 'あ', 110 ) . " [&hellip;]</p>\n";
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -387,7 +387,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        'post_excerpt' => '',
</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">-                $post = $this->factory()->post->create_and_get( $args );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $post = self::factory()->post->create_and_get( $args );
</ins><span class="cx" style="display: block; padding: 0 10px">                 setup_postdata( $post );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $expect = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat [&#8230;]';
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -413,7 +413,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        'post_excerpt' => '',
</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">-                $post = $this->factory()->post->create_and_get( $args );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $post = self::factory()->post->create_and_get( $args );
</ins><span class="cx" style="display: block; padding: 0 10px">                 setup_postdata( $post );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $expect = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore  [&#8230;]';
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -441,7 +441,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        'post_status'  => 'draft',
</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">-                $this->factory()->post->create( $args );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         self::factory()->post->create( $args );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $expect = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do&hellip;';
</span><span class="cx" style="display: block; padding: 0 10px">                $this->expectOutputRegex( '/' . $expect . '/' );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -467,7 +467,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        'post_status'  => 'draft',
</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">-                $post = $this->factory()->post->create( $args );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $post = self::factory()->post->create( $args );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $expect = 'Lorem ipsum dolor sit amet, consectetur &hellip;';
</span><span class="cx" style="display: block; padding: 0 10px">                $this->expectOutputRegex( '/' . $expect . '/' );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -493,7 +493,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        'post_status'  => 'draft',
</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">-                $this->factory()->post->create( $args );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         self::factory()->post->create( $args );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $expect = str_repeat( 'あ', 40 ) . '&hellip;';
</span><span class="cx" style="display: block; padding: 0 10px">                $this->expectOutputRegex( '/' . $expect . '/' );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -514,7 +514,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $args            = array(
</span><span class="cx" style="display: block; padding: 0 10px">                        'comment_content' => $this->long_text,
</span><span class="cx" style="display: block; padding: 0 10px">                );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $comment_id      = $this->factory()->comment->create( $args );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $comment_id      = self::factory()->comment->create( $args );
</ins><span class="cx" style="display: block; padding: 0 10px">                 $expect          = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut&hellip;';
</span><span class="cx" style="display: block; padding: 0 10px">                $comment_excerpt = get_comment_excerpt( $comment_id );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -534,7 +534,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $args            = array(
</span><span class="cx" style="display: block; padding: 0 10px">                        'comment_content' => $this->long_text,
</span><span class="cx" style="display: block; padding: 0 10px">                );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $comment_id      = $this->factory()->comment->create( $args );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $comment_id      = self::factory()->comment->create( $args );
</ins><span class="cx" style="display: block; padding: 0 10px">                 $expect          = 'Lorem ipsum dolor sit amet, consectetur &hellip;';
</span><span class="cx" style="display: block; padding: 0 10px">                $comment_excerpt = get_comment_excerpt( $comment_id );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -554,7 +554,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $args            = array(
</span><span class="cx" style="display: block; padding: 0 10px">                        'comment_content' => str_repeat( 'あ', 200 ),
</span><span class="cx" style="display: block; padding: 0 10px">                );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $comment_id      = $this->factory()->comment->create( $args );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $comment_id      = self::factory()->comment->create( $args );
</ins><span class="cx" style="display: block; padding: 0 10px">                 $expect          = str_repeat( 'あ', 40 ) . '&hellip;';
</span><span class="cx" style="display: block; padding: 0 10px">                $comment_excerpt = get_comment_excerpt( $comment_id );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span></span></pre></div>
<a id="trunktestsphpunittestsmultisitenetworkphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/multisite/network.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/multisite/network.php   2022-09-06 22:00:11 UTC (rev 54087)
+++ trunk/tests/phpunit/tests/multisite/network.php     2022-09-06 22:03:10 UTC (rev 54088)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -561,7 +561,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        $new_network_id = $this->_get_next_network_id();
</span><span class="cx" style="display: block; padding: 0 10px">                        $this->assertNull( get_network( $new_network_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_network = $this->factory()->network->create_and_get();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 $new_network = self::factory()->network->create_and_get();
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                        // Double-check we got the ID of the new network correct.
</span><span class="cx" style="display: block; padding: 0 10px">                        $this->assertSame( $new_network_id, $new_network->id );
</span></span></pre></div>
<a id="trunktestsphpunittestsmultisitesitephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/multisite/site.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/multisite/site.php      2022-09-06 22:00:11 UTC (rev 54087)
+++ trunk/tests/phpunit/tests/multisite/site.php        2022-09-06 22:03:10 UTC (rev 54088)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2459,7 +2459,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        $new_site_id = $this->_get_next_site_id();
</span><span class="cx" style="display: block; padding: 0 10px">                        $this->assertNull( get_site( $new_site_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_site = $this->factory()->blog->create_and_get();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 $new_site = self::factory()->blog->create_and_get();
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                        // Double-check we got the ID of the new site correct.
</span><span class="cx" style="display: block; padding: 0 10px">                        $this->assertEquals( $new_site_id, $new_site->blog_id );
</span></span></pre></div>
<a id="trunktestsphpunittestsoembedWpEmbedphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/oembed/WpEmbed.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/oembed/WpEmbed.php      2022-09-06 22:00:11 UTC (rev 54087)
+++ trunk/tests/phpunit/tests/oembed/WpEmbed.php        2022-09-06 22:03:10 UTC (rev 54088)
</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">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_maybe_run_ajax_cache_should_return_nothing_if_there_is_no_message() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $GLOBALS['post'] = $this->factory()->post->create_and_get(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $GLOBALS['post'] = self::factory()->post->create_and_get(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_title' => 'Hello World',
</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"> 
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_maybe_run_ajax_cache_should_return_javascript() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $GLOBALS['post'] = $this->factory()->post->create_and_get(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $GLOBALS['post'] = self::factory()->post->create_and_get(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_title' => 'Hello World',
</span><span class="cx" style="display: block; padding: 0 10px">                        )
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -134,7 +134,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_delete_oembed_caches() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $post_id = $this->factory()->post->create();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $post_id = self::factory()->post->create();
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                add_post_meta( $post_id, '_oembed_foo', 'bar' );
</span><span class="cx" style="display: block; padding: 0 10px">                add_post_meta( $post_id, '_oembed_foo', 'baz' );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -147,7 +147,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_cache_oembed_invalid_post_type() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $post_id = $this->factory()->post->create( array( 'post_type' => 'nav_menu_item' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $post_id = self::factory()->post->create( array( 'post_type' => 'nav_menu_item' ) );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $this->wp_embed->cache_oembed( $post_id );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertNotSame( $post_id, $this->wp_embed->post_ID );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -154,7 +154,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_cache_oembed_empty_content() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $post_id = $this->factory()->post->create( array( 'post_content' => '' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $post_id = self::factory()->post->create( array( 'post_content' => '' ) );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $this->wp_embed->cache_oembed( $post_id );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertNotSame( $post_id, $this->wp_embed->post_ID );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -167,7 +167,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $cachekey      = '_oembed_' . $key_suffix;
</span><span class="cx" style="display: block; padding: 0 10px">                $cachekey_time = '_oembed_time_' . $key_suffix;
</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_id = $this->factory()->post->create( array( 'post_content' => 'https://example.com/' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $post_id = self::factory()->post->create( array( 'post_content' => 'https://example.com/' ) );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                add_filter( 'pre_oembed_result', array( $this, '_pre_oembed_result_callback' ) );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->wp_embed->cache_oembed( $post_id );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -181,7 +181,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_shortcode_should_get_cached_data_from_post_meta_for_known_post() {
</span><span class="cx" style="display: block; padding: 0 10px">                global $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">-                $post       = $this->factory()->post->create_and_get();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $post       = self::factory()->post->create_and_get();
</ins><span class="cx" style="display: block; padding: 0 10px">                 $url        = 'https://example.com/';
</span><span class="cx" style="display: block; padding: 0 10px">                $expected   = '<b>Embedded content</b>';
</span><span class="cx" style="display: block; padding: 0 10px">                $key_suffix = md5( $url . serialize( wp_embed_defaults( $url ) ) );
</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">        public function test_shortcode_should_get_cached_failure_from_post_meta_for_known_post() {
</span><span class="cx" style="display: block; padding: 0 10px">                global $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">-                $post          = $this->factory()->post->create_and_get();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $post          = self::factory()->post->create_and_get();
</ins><span class="cx" style="display: block; padding: 0 10px">                 $url           = 'https://example.com/';
</span><span class="cx" style="display: block; padding: 0 10px">                $expected      = '<a href="' . esc_url( $url ) . '">' . esc_html( $url ) . '</a>';
</span><span class="cx" style="display: block; padding: 0 10px">                $key_suffix    = md5( $url . serialize( wp_embed_defaults( $url ) ) );
</span></span></pre></div>
<a id="trunktestsphpunittestsoembedcontrollerphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/oembed/controller.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/oembed/controller.php   2022-09-06 22:00:11 UTC (rev 54087)
+++ trunk/tests/phpunit/tests/oembed/controller.php     2022-09-06 22:03:10 UTC (rev 54088)
</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">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_request_invalid_format() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $post_id = $this->factory()->post->create();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $post_id = self::factory()->post->create();
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $request = new WP_REST_Request( 'GET', '/oembed/1.0/embed' );
</span><span class="cx" style="display: block; padding: 0 10px">                $request->set_param( 'url', get_permalink( $post_id ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -461,12 +461,12 @@
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_rest_pre_serve_request() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $user = $this->factory()->user->create_and_get(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $user = self::factory()->user->create_and_get(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'display_name' => 'John Doe',
</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">-                $post = $this->factory()->post->create_and_get(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $post = self::factory()->post->create_and_get(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_author' => $user->ID,
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_title'  => 'Hello World',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -485,7 +485,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_rest_pre_serve_request_wrong_format() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $post = $this->factory()->post->create_and_get();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $post = self::factory()->post->create_and_get();
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $request = new WP_REST_Request( 'GET', '/oembed/1.0/embed' );
</span><span class="cx" style="display: block; padding: 0 10px">                $request->set_param( 'url', get_permalink( $post->ID ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -497,7 +497,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_rest_pre_serve_request_wrong_method() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $post = $this->factory()->post->create_and_get();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $post = self::factory()->post->create_and_get();
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $request = new WP_REST_Request( 'HEAD', '/oembed/1.0/embed' );
</span><span class="cx" style="display: block; padding: 0 10px">                $request->set_param( 'url', get_permalink( $post->ID ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -513,7 +513,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertSame( home_url() . '/index.php?rest_route=/oembed/1.0/embed', get_oembed_endpoint_url( '', 'json' ) );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertSame( home_url() . '/index.php?rest_route=/oembed/1.0/embed', get_oembed_endpoint_url( '', 'xml' ) );
</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_id     = $this->factory()->post->create();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $post_id     = self::factory()->post->create();
</ins><span class="cx" style="display: block; padding: 0 10px">                 $url         = get_permalink( $post_id );
</span><span class="cx" style="display: block; padding: 0 10px">                $url_encoded = urlencode( $url );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -527,7 +527,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertSame( home_url() . '/wp-json/oembed/1.0/embed', get_oembed_endpoint_url() );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertSame( home_url() . '/wp-json/oembed/1.0/embed', get_oembed_endpoint_url( '', 'xml' ) );
</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_id     = $this->factory()->post->create();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $post_id     = self::factory()->post->create();
</ins><span class="cx" style="display: block; padding: 0 10px">                 $url         = get_permalink( $post_id );
</span><span class="cx" style="display: block; padding: 0 10px">                $url_encoded = urlencode( $url );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span></span></pre></div>
<a id="trunktestsphpunittestsoembedheadersphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/oembed/headers.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/oembed/headers.php      2022-09-06 22:00:11 UTC (rev 54087)
+++ trunk/tests/phpunit/tests/oembed/headers.php        2022-09-06 22:03:10 UTC (rev 54088)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -13,7 +13,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">         * @requires function xdebug_get_headers
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_rest_pre_serve_request_headers() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $post = $this->factory()->post->create_and_get(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $post = self::factory()->post->create_and_get(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_title' => 'Hello World',
</span><span class="cx" style="display: block; padding: 0 10px">                        )
</span></span></pre></div>
<a id="trunktestsphpunittestspostisPostPubliclyViewablephp"></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/isPostPubliclyViewable.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/post/isPostPubliclyViewable.php 2022-09-06 22:00:11 UTC (rev 54087)
+++ trunk/tests/phpunit/tests/post/isPostPubliclyViewable.php   2022-09-06 22:03:10 UTC (rev 54088)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -54,7 +54,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        $date = date_format( date_create( '+1 year' ), '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><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $post_id = $this->factory()->post->create(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $post_id = self::factory()->post->create(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_type'   => $post_type,
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_status' => $post_status,
</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       2022-09-06 22:00:11 UTC (rev 54087)
+++ trunk/tests/phpunit/tests/post/nav-menu.php 2022-09-06 22:03:10 UTC (rev 54088)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -745,17 +745,17 @@
</span><span class="cx" style="display: block; padding: 0 10px">         * @covers ::_wp_delete_customize_changeset_dependent_auto_drafts
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_wp_delete_customize_changeset_dependent_auto_drafts() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $auto_draft_post_id = $this->factory()->post->create(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $auto_draft_post_id = self::factory()->post->create(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_status' => 'auto-draft',
</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">-                $draft_post_id      = $this->factory()->post->create(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $draft_post_id      = self::factory()->post->create(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_status' => 'draft',
</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">-                $private_post_id    = $this->factory()->post->create(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $private_post_id    = self::factory()->post->create(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_status' => 'private',
</span><span class="cx" style="display: block; padding: 0 10px">                        )
</span></span></pre></div>
<a id="trunktestsphpunittestspostwpInsertPostphp"></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/wpInsertPost.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/post/wpInsertPost.php   2022-09-06 22:00:11 UTC (rev 54087)
+++ trunk/tests/phpunit/tests/post/wpInsertPost.php     2022-09-06 22:03:10 UTC (rev 54088)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1425,7 +1425,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_contributor_cannot_set_post_slug( $post_type ) {
</span><span class="cx" style="display: block; padding: 0 10px">                wp_set_current_user( self::$user_ids['contributor'] );
</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_id = $this->factory()->post->create(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $post_id = self::factory()->post->create(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_title'   => 'Jefferson claim: nice to have Washington on your side.',
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_content' => "I’m in the cabinet. I am complicit in watching him grabbin’ at power and kiss it.\n\nIf Washington isn’t gon’ listen to disciplined dissidents, this is the difference: this kid is out!",
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1464,7 +1464,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_administrator_can_set_post_slug( $post_type ) {
</span><span class="cx" style="display: block; padding: 0 10px">                wp_set_current_user( self::$user_ids['administrator'] );
</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_id = $this->factory()->post->create(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $post_id = self::factory()->post->create(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_title'   => 'What is the Conner Project?',
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_content' => 'Evan Hansen’s last link to his friend Conner is a signature on his broken arm.',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1505,7 +1505,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_administrator_cannot_set_post_slug_on_post_type_they_cannot_publish() {
</span><span class="cx" style="display: block; padding: 0 10px">                wp_set_current_user( self::$user_ids['administrator'] );
</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_id = $this->factory()->post->create(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $post_id = self::factory()->post->create(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_title'   => 'Everything is legal in New Jersey',
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_content' => 'Shortly before his death, Philip Hamilton was heard to claim everything was legal in the garden state.',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1542,7 +1542,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $now = new DateTimeImmutable( 'now', new DateTimeZone( 'UTC' ) );
</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_id = $this->factory()->post->create(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $post_id = self::factory()->post->create(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_date_gmt' => $now->modify( '-1 year' )->format( 'Y-m-d H:i:s' ),
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_status'   => 'future',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1551,7 +1551,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertSame( 'publish', get_post_status( $post_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">-                $post_id = $this->factory()->post->create(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $post_id = self::factory()->post->create(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_date_gmt' => $now->modify( '+50 years' )->format( 'Y-m-d H:i:s' ),
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_status'   => 'future',
</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        2022-09-06 22:00:11 UTC (rev 54087)
+++ trunk/tests/phpunit/tests/post.php  2022-09-06 22:03:10 UTC (rev 54088)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -726,7 +726,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_use_block_editor_for_post() {
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertFalse( use_block_editor_for_post( -1 ) );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $bogus_post_id = $this->factory()->post->create(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $bogus_post_id = self::factory()->post->create(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_type' => 'bogus',
</span><span class="cx" style="display: block; padding: 0 10px">                        )
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -739,7 +739,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                'show_in_rest' => 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">-                $restless_post_id = $this->factory()->post->create(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $restless_post_id = self::factory()->post->create(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_type' => 'restless',
</span><span class="cx" style="display: block; padding: 0 10px">                        )
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -746,7 +746,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertFalse( use_block_editor_for_post( $restless_post_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">-                $generic_post_id = $this->factory()->post->create();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $generic_post_id = self::factory()->post->create();
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                add_filter( 'use_block_editor_for_post', '__return_false' );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertFalse( use_block_editor_for_post( $generic_post_id ) );
</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      2022-09-06 22:00:11 UTC (rev 54087)
+++ trunk/tests/phpunit/tests/rest-api/rest-posts-controller.php        2022-09-06 22:03:10 UTC (rev 54088)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -5256,7 +5256,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_draft_post_does_not_have_the_same_slug_as_existing_post() {
</span><span class="cx" style="display: block; padding: 0 10px">                wp_set_current_user( self::$editor_id );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->factory()->post->create( array( 'post_name' => 'sample-slug' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         self::factory()->post->create( array( 'post_name' => 'sample-slug' ) );
</ins><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="cx" style="display: block; padding: 0 10px">                $params  = $this->set_post_data(
</span></span></pre></div>
<a id="trunktestsphpunittestsrestapiwpRestBlockPatternCategoriesControllerphp"></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/wpRestBlockPatternCategoriesController.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/rest-api/wpRestBlockPatternCategoriesController.php     2022-09-06 22:00:11 UTC (rev 54087)
+++ trunk/tests/phpunit/tests/rest-api/wpRestBlockPatternCategoriesController.php       2022-09-06 22:03:10 UTC (rev 54088)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -136,7 +136,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_items_forbidden() {
</span><span class="cx" style="display: block; padding: 0 10px">                // Set current user without `edit_posts` capability.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                wp_set_current_user( $this->factory()->user->create( array( 'role' => 'subscriber' ) ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         wp_set_current_user( self::factory()->user->create( array( 'role' => 'subscriber' ) ) );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $request  = new WP_REST_Request( 'GET', static::REQUEST_ROUTE );
</span><span class="cx" style="display: block; padding: 0 10px">                $response = rest_do_request( $request );
</span></span></pre></div>
<a id="trunktestsphpunittestsrestapiwpRestBlockPatternsControllerphp"></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/wpRestBlockPatternsController.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/rest-api/wpRestBlockPatternsController.php      2022-09-06 22:00:11 UTC (rev 54087)
+++ trunk/tests/phpunit/tests/rest-api/wpRestBlockPatternsController.php        2022-09-06 22:03:10 UTC (rev 54088)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -162,7 +162,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_items_forbidden() {
</span><span class="cx" style="display: block; padding: 0 10px">                // Set current user without `edit_posts` capability.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                wp_set_current_user( $this->factory()->user->create( array( 'role' => 'subscriber' ) ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         wp_set_current_user( self::factory()->user->create( array( 'role' => 'subscriber' ) ) );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $request  = new WP_REST_Request( 'GET', static::REQUEST_ROUTE );
</span><span class="cx" style="display: block; padding: 0 10px">                $response = rest_do_request( $request );
</span></span></pre></div>
<a id="trunktestsphpunitteststermisTermPubliclyViewablephp"></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/isTermPubliclyViewable.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/term/isTermPubliclyViewable.php 2022-09-06 22:00:11 UTC (rev 54087)
+++ trunk/tests/phpunit/tests/term/isTermPubliclyViewable.php   2022-09-06 22:03:10 UTC (rev 54088)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -25,7 +25,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">         * @param bool   $expected The expected result of the function call.
</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_publicly_viewable( $taxonomy, $expected ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $term_id = $this->factory()->term->create(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $term_id = self::factory()->term->create(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'taxonomy' => $taxonomy,
</span><span class="cx" style="display: block; padding: 0 10px">                        )
</span></span></pre></div>
<a id="trunktestsphpunitteststermtermCountsphp"></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/termCounts.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/term/termCounts.php     2022-09-06 22:00:11 UTC (rev 54087)
+++ trunk/tests/phpunit/tests/term/termCounts.php       2022-09-06 22:03:10 UTC (rev 54088)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -90,7 +90,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_term_count_changes_for_post_statuses( $post_status, $change ) {
</span><span class="cx" style="display: block; padding: 0 10px">                $term_count = get_term( get_option( 'default_category' ) )->count;
</span><span class="cx" style="display: block; padding: 0 10px">                // Do not use shared fixture for this test as it relies on a new post.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $post_id = $this->factory()->post->create( array( 'post_status' => $post_status ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $post_id = self::factory()->post->create( array( 'post_status' => $post_status ) );
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $expected = $term_count + $change;
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertSame( $expected, get_term( get_option( 'default_category' ) )->count );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -244,7 +244,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                add_filter( 'update_post_term_count_statuses', array( $this, 'add_custom_status_to_counted_statuses' ) );
</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_id = $this->factory()->post->create( array( 'post_status' => $post_status ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $post_id = self::factory()->post->create( array( 'post_status' => $post_status ) );
</ins><span class="cx" style="display: block; padding: 0 10px">                 wp_add_object_terms( $post_id, self::$attachment_term, 'wp_test_tax_counts' );
</span><span class="cx" style="display: block; padding: 0 10px">                $attachment_id = self::factory()->attachment->create_object(
</span><span class="cx" style="display: block; padding: 0 10px">                        array(
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -296,7 +296,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_term_count_changes_for_post_statuses_with_attachments( $post_status, $change ) {
</span><span class="cx" style="display: block; padding: 0 10px">                $term_count = get_term( self::$attachment_term )->count;
</span><span class="cx" style="display: block; padding: 0 10px">                // Do not use shared fixture for this test as it relies on a new post.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $post_id = $this->factory()->post->create( array( 'post_status' => $post_status ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $post_id = self::factory()->post->create( array( 'post_status' => $post_status ) );
</ins><span class="cx" style="display: block; padding: 0 10px">                 wp_add_object_terms( $post_id, self::$attachment_term, 'wp_test_tax_counts' );
</span><span class="cx" style="display: block; padding: 0 10px">                $attachment_id = self::factory()->attachment->create_object(
</span><span class="cx" style="display: block; padding: 0 10px">                        array(
</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       2022-09-06 22:00:11 UTC (rev 54087)
+++ trunk/tests/phpunit/tests/theme.php 2022-09-06 22:03:10 UTC (rev 54088)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -366,7 +366,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">         * @covers ::_wp_keep_alive_customize_changeset_dependent_auto_drafts
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_wp_keep_alive_customize_changeset_dependent_auto_drafts() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $nav_created_post_ids = $this->factory()->post->create_many(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $nav_created_post_ids = self::factory()->post->create_many(
</ins><span class="cx" style="display: block; padding: 0 10px">                         2,
</span><span class="cx" style="display: block; padding: 0 10px">                        array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_status' => 'auto-draft',
</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        2022-09-06 22:00:11 UTC (rev 54087)
+++ trunk/tests/phpunit/tests/user.php  2022-09-06 22:03:10 UTC (rev 54088)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1696,7 +1696,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                reset_phpmailer_instance();
</span><span class="cx" style="display: block; padding: 0 10px">                $was_confirmation_email_sent = false;
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $user = $this->factory()->user->create_and_get(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $user = self::factory()->user->create_and_get(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'user_email' => 'before@example.com',
</span><span class="cx" style="display: block; padding: 0 10px">                        )
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1733,7 +1733,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                reset_phpmailer_instance();
</span><span class="cx" style="display: block; padding: 0 10px">                $was_confirmation_email_sent = false;
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $user = $this->factory()->user->create_and_get(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $user = self::factory()->user->create_and_get(
</ins><span class="cx" style="display: block; padding: 0 10px">                         array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'user_email' => 'before@example.com',
</span><span class="cx" style="display: block; padding: 0 10px">                        )
</span></span></pre></div>
<a id="trunktestsphpunittestswidgetswpWidgetCustomHtmlphp"></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/widgets/wpWidgetCustomHtml.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/widgets/wpWidgetCustomHtml.php  2022-09-06 22:00:11 UTC (rev 54087)
+++ trunk/tests/phpunit/tests/widgets/wpWidgetCustomHtml.php    2022-09-06 22:03:10 UTC (rev 54088)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -172,7 +172,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">                wp_set_current_user(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        $this->factory()->user->create(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 self::factory()->user->create(
</ins><span class="cx" style="display: block; padding: 0 10px">                                 array(
</span><span class="cx" style="display: block; padding: 0 10px">                                        'role' => 'administrator',
</span><span class="cx" style="display: block; padding: 0 10px">                                )
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -241,7 +241,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">         * @covers WP_Widget_Custom_HTML::enqueue_admin_scripts
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_enqueue_admin_scripts_when_logged_in_and_syntax_highlighting_on() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $user = $this->factory()->user->create();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $user = self::factory()->user->create();
</ins><span class="cx" style="display: block; padding: 0 10px">                 wp_set_current_user( $user );
</span><span class="cx" style="display: block; padding: 0 10px">                wp_get_current_user()->syntax_highlighting = 'true';
</span><span class="cx" style="display: block; padding: 0 10px">                set_current_screen( 'widgets.php' );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -262,7 +262,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">         * @covers WP_Widget_Custom_HTML::enqueue_admin_scripts
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_enqueue_admin_scripts_when_logged_in_and_syntax_highlighting_off() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $user = $this->factory()->user->create();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $user = self::factory()->user->create();
</ins><span class="cx" style="display: block; padding: 0 10px">                 wp_set_current_user( $user );
</span><span class="cx" style="display: block; padding: 0 10px">                update_user_meta( $user, 'syntax_highlighting', 'false' );
</span><span class="cx" style="display: block; padding: 0 10px">                set_current_screen( 'widgets.php' );
</span></span></pre></div>
<a id="trunktestsphpunittestswidgetswpWidgetMediaphp"></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/widgets/wpWidgetMedia.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/widgets/wpWidgetMedia.php       2022-09-06 22:00:11 UTC (rev 54087)
+++ trunk/tests/phpunit/tests/widgets/wpWidgetMedia.php 2022-09-06 22:03:10 UTC (rev 54088)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -116,7 +116,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_constructor_in_customize_preview() {
</span><span class="cx" style="display: block; padding: 0 10px">                global $wp_customize;
</span><span class="cx" style="display: block; padding: 0 10px">                wp_set_current_user(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        $this->factory()->user->create(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 self::factory()->user->create(
</ins><span class="cx" style="display: block; padding: 0 10px">                                 array(
</span><span class="cx" style="display: block; padding: 0 10px">                                        'role' => 'administrator',
</span><span class="cx" style="display: block; padding: 0 10px">                                )
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -159,7 +159,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertFalse( $widget->is_attachment_with_mime_type( 0, 'image' ) );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertFalse( $widget->is_attachment_with_mime_type( -123, 'image' ) );
</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_id = $this->factory()->post->create();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $post_id = self::factory()->post->create();
</ins><span class="cx" style="display: block; padding: 0 10px">                 $this->assertFalse( $widget->is_attachment_with_mime_type( $post_id, 'image' ) );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertFalse( $widget->is_attachment_with_mime_type( $attachment_id, 'video' ) );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertTrue( $widget->is_attachment_with_mime_type( $attachment_id, 'image' ) );
</span></span></pre></div>
<a id="trunktestsphpunittestswidgetswpWidgetTextphp"></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/widgets/wpWidgetText.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/widgets/wpWidgetText.php        2022-09-06 22:00:11 UTC (rev 54087)
+++ trunk/tests/phpunit/tests/widgets/wpWidgetText.php  2022-09-06 22:03:10 UTC (rev 54088)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -81,7 +81,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public function test__register_in_customize_preview() {
</span><span class="cx" style="display: block; padding: 0 10px">                global $wp_customize;
</span><span class="cx" style="display: block; padding: 0 10px">                wp_set_current_user(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        $this->factory()->user->create(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 self::factory()->user->create(
</ins><span class="cx" style="display: block; padding: 0 10px">                                 array(
</span><span class="cx" style="display: block; padding: 0 10px">                                        'role' => 'administrator',
</span><span class="cx" style="display: block; padding: 0 10px">                                )
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -315,7 +315,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_widget_shortcodes() {
</span><span class="cx" style="display: block; padding: 0 10px">                global $post;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $post_id = $this->factory()->post->create();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $post_id = self::factory()->post->create();
</ins><span class="cx" style="display: block; padding: 0 10px">                 $post    = get_post( $post_id );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $args   = array(
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -716,7 +716,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">                wp_set_current_user(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        $this->factory()->user->create(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 self::factory()->user->create(
</ins><span class="cx" style="display: block; padding: 0 10px">                                 array(
</span><span class="cx" style="display: block; padding: 0 10px">                                        'role' => 'administrator',
</span><span class="cx" style="display: block; padding: 0 10px">                                )
</span></span></pre>
</div>
</div>

</body>
</html>