<!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>[9884] sites/trunk/wordpress.org/public_html/wp-content/plugins/phpunit-test-reporter: Bump the `PHPUnit Test Reporter` plugin to v0.1.2</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="http://meta.trac.wordpress.org/changeset/9884">9884</a><script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"Review this Commit","action":{"@type":"ViewAction","url":"http://meta.trac.wordpress.org/changeset/9884","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>dd32</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2020-05-19 05:33:14 +0000 (Tue, 19 May 2020)</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'>Bump the `PHPUnit Test Reporter` plugin to v0.1.2

Props mikeschroder.
Fixes <a href="http://meta.trac.wordpress.org/ticket/5214">#5214</a>.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginsphpunittestreporterpartsresultsetphp">sites/trunk/wordpress.org/public_html/wp-content/plugins/phpunit-test-reporter/parts/result-set.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginsphpunittestreporterpartssingleresultphp">sites/trunk/wordpress.org/public_html/wp-content/plugins/phpunit-test-reporter/parts/single-result.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginsphpunittestreporterphpunittestreporterphp">sites/trunk/wordpress.org/public_html/wp-content/plugins/phpunit-test-reporter/phpunit-test-reporter.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginsphpunittestreporterreadmetxt">sites/trunk/wordpress.org/public_html/wp-content/plugins/phpunit-test-reporter/readme.txt</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginsphpunittestreportersrcclasscontentmodelphp">sites/trunk/wordpress.org/public_html/wp-content/plugins/phpunit-test-reporter/src/class-content-model.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginsphpunittestreportersrcclassdisplayphp">sites/trunk/wordpress.org/public_html/wp-content/plugins/phpunit-test-reporter/src/class-display.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginsphpunittestreportersrcclassrestapiphp">sites/trunk/wordpress.org/public_html/wp-content/plugins/phpunit-test-reporter/src/class-restapi.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginsphpunittestreporterpartsresultsetphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/plugins/phpunit-test-reporter/parts/result-set.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/plugins/phpunit-test-reporter/parts/result-set.php       2020-05-18 22:28:45 UTC (rev 9883)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/phpunit-test-reporter/parts/result-set.php 2020-05-19 05:33:14 UTC (rev 9884)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -17,13 +17,13 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $total_cols = 5;
</span><span class="cx" style="display: block; padding: 0 10px">                foreach ( $revisions as $revision ) :
</span><span class="cx" style="display: block; padding: 0 10px">                        $rev_id = (int) ltrim( $revision->post_name, 'r' );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                ?>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 ?>
</ins><span class="cx" style="display: block; padding: 0 10px">                         <tr>
</span><span class="cx" style="display: block; padding: 0 10px">                                <th colspan="<?php echo (int) $total_cols; ?>"><a href="<?php echo esc_url( sprintf( 'https://core.trac.wordpress.org/changeset/%d', $rev_id ) ); ?>">r<?php echo (int) $rev_id; ?></a>: <?php echo wp_kses_post( apply_filters( 'the_title', $revision->post_title ) ); ?></th>
</span><span class="cx" style="display: block; padding: 0 10px">                        </tr>
</span><span class="cx" style="display: block; padding: 0 10px">                        <?php
</span><span class="cx" style="display: block; padding: 0 10px">                        $query_args   = array(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                'posts_per_page' => 10,
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         'posts_per_page' => $posts_per_page,
</ins><span class="cx" style="display: block; padding: 0 10px">                                 'post_type'      => 'result',
</span><span class="cx" style="display: block; padding: 0 10px">                                'post_parent'    => $revision->ID,
</span><span class="cx" style="display: block; padding: 0 10px">                                'orderby'        => 'post_title',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -47,7 +47,11 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                                        $host .= '<a target="_blank" rel="nofollow" href="' . esc_url( $user->user_url ) . '">';
</span><span class="cx" style="display: block; padding: 0 10px">                                                }
</span><span class="cx" style="display: block; padding: 0 10px">                                                $host .= get_avatar(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                                        $user->ID, 18, '', '', array(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                                 $user->ID,
+                                                       18,
+                                                       '',
+                                                       '',
+                                                       array(
</ins><span class="cx" style="display: block; padding: 0 10px">                                                                 'extra_attr' => 'style="vertical-align: middle;margin-right:5px;"',
</span><span class="cx" style="display: block; padding: 0 10px">                                                        )
</span><span class="cx" style="display: block; padding: 0 10px">                                                );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -69,10 +73,10 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                        <td><?php echo esc_html( Display::get_display_php_version( $report->ID ) ); ?></td>
</span><span class="cx" style="display: block; padding: 0 10px">                                        <td><?php echo esc_html( Display::get_display_mysql_version( $report->ID ) ); ?></td>
</span><span class="cx" style="display: block; padding: 0 10px">                                </tr>
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        <?php
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                 <?php
</ins><span class="cx" style="display: block; padding: 0 10px">                                 endforeach;
</span><span class="cx" style="display: block; padding: 0 10px">                        else :
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        ?>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         ?>
</ins><span class="cx" style="display: block; padding: 0 10px">                                 <tr>
</span><span class="cx" style="display: block; padding: 0 10px">                                        <td></td>
</span><span class="cx" style="display: block; padding: 0 10px">                                        <td colspan="<?php echo (int) $total_cols - 1; ?>">
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginsphpunittestreporterpartssingleresultphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/plugins/phpunit-test-reporter/parts/single-result.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/plugins/phpunit-test-reporter/parts/single-result.php    2020-05-18 22:28:45 UTC (rev 9883)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/phpunit-test-reporter/parts/single-result.php      2020-05-19 05:33:14 UTC (rev 9884)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -16,7 +16,11 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $host .= '<a target="_blank" rel="nofollow" href="' . esc_url( $user->user_url ) . '">';
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px">        $host .= get_avatar(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $user->ID, 18, '', '', array(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         $user->ID,
+               18,
+               '',
+               '',
+               array(
</ins><span class="cx" style="display: block; padding: 0 10px">                         'extra_attr' => 'style="vertical-align: middle;margin-right:5px;"',
</span><span class="cx" style="display: block; padding: 0 10px">                )
</span><span class="cx" style="display: block; padding: 0 10px">        );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -37,7 +41,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> <?php
</span><span class="cx" style="display: block; padding: 0 10px"> $parent = get_post( $report->post_parent );
</span><span class="cx" style="display: block; padding: 0 10px"> if ( $parent ) :
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-?>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ ?>
</ins><span class="cx" style="display: block; padding: 0 10px"> <p><a href="<?php echo esc_url( get_permalink( $parent ) ); ?>">&larr; <?php echo esc_html( $parent->post_name ) . ': ' . apply_filters( 'the_title', get_the_title( $parent ) ); ?></a></p>
</span><span class="cx" style="display: block; padding: 0 10px"> <?php endif; ?>
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -73,7 +77,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        continue;
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span><span class="cx" style="display: block; padding: 0 10px">                foreach ( $testsuite['testcases'] as $test_name => $testcase ) :
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                ?>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 ?>
</ins><span class="cx" style="display: block; padding: 0 10px">                 <p><strong><?php echo esc_html( $suite_name . '::' . $test_name ); ?></strong></p>
</span><span class="cx" style="display: block; padding: 0 10px">                <pre><?php echo ! empty( $testcase['failure'] ) ? $testcase['failure'] : $testcase['error']; ?></pre>
</span><span class="cx" style="display: block; padding: 0 10px">                <?php endforeach; ?>
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginsphpunittestreporterphpunittestreporterphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/plugins/phpunit-test-reporter/phpunit-test-reporter.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/plugins/phpunit-test-reporter/phpunit-test-reporter.php  2020-05-18 22:28:45 UTC (rev 9883)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/phpunit-test-reporter/phpunit-test-reporter.php    2020-05-19 05:33:14 UTC (rev 9884)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,13 +1,13 @@
</span><span class="cx" style="display: block; padding: 0 10px"> <?php
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px">  * Plugin Name:     PHPUnit Test Reporter
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Plugin URI:      https://make.wordpress.org/hosting/phpunit-test-results/
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Plugin URI:      https://make.wordpress.org/hosting/test-results/
</ins><span class="cx" style="display: block; padding: 0 10px">  * Description:     Captures and displays test results from the PHPUnit Test Runner
</span><span class="cx" style="display: block; padding: 0 10px">  * Author:          WordPress Hosting Community
</span><span class="cx" style="display: block; padding: 0 10px">  * Author URI:      https://make.wordpress.org/hosting/
</span><span class="cx" style="display: block; padding: 0 10px">  * Text Domain:     ptr
</span><span class="cx" style="display: block; padding: 0 10px">  * Domain Path:     /languages
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Version:         0.1.0
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Version:         0.1.2
</ins><span class="cx" style="display: block; padding: 0 10px">  * License:         GPL v3
</span><span class="cx" style="display: block; padding: 0 10px">  *
</span><span class="cx" style="display: block; padding: 0 10px">  * @package         PTR
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginsphpunittestreporterreadmetxt"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/plugins/phpunit-test-reporter/readme.txt</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/plugins/phpunit-test-reporter/readme.txt 2020-05-18 22:28:45 UTC (rev 9883)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/phpunit-test-reporter/readme.txt   2020-05-19 05:33:14 UTC (rev 9884)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,9 +1,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> === PHPUnit Test Reporter ===
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-Contributors: octalmage, danielbachhuber
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+Contributors: octalmage, danielbachhuber, wpamitkumar, mikeschroder, pfefferle
</ins><span class="cx" style="display: block; padding: 0 10px"> Tags: phpunit
</span><span class="cx" style="display: block; padding: 0 10px"> Requires at least: 4.7
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-Tested up to: 4.8
-Stable tag: 0.1.0
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+Tested up to: 5.4.1
+Stable tag: 0.1.2
</ins><span class="cx" style="display: block; padding: 0 10px"> License: GPLv3
</span><span class="cx" style="display: block; padding: 0 10px"> License URI: http://www.gnu.org/licenses/gpl-3.0.html
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -11,11 +11,45 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px"> == Description ==
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-Captures and displays test results from the PHPUnit Test Runner
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+Captures and displays test results from the [PHPUnit Test Runner](https://github.com/WordPress/phpunit-test-runner).
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px"> For more details, [please read through the project overview](https://make.wordpress.org/hosting/test-results-getting-started/).
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+== Contributing ==
+
+There’s a Docker environment with several tools built in for testing.
+To configure it, run `make` and it will automatically run `docker-compose`.
+After that, to view the test environment, visit http://localhost:8080.
+
+Usage:
+- `make` or `make start`:  Builds a Docker environment for testing.
+- `make stop`: Stops Docker test environment.
+- `make shell`: SSH to Docker test environment.
+- `make test`: Runs `php-unit` and `phpcs` in Docker test environment.
+
+There is also a [Grunt](https://gruntjs.com/) command for updating the `README.md` file for Github
+after updating `readme.txt`.
+
+Usage:
+- `npm install`: Installs necessary dependencies.
+- `grunt readme`: Generates `README.md` with
+  `[grunt-wp-readme-to-markdown](https://github.com/stephenharris/wp-readme-to-markdown)`.
+
</ins><span class="cx" style="display: block; padding: 0 10px"> == Changelog ==
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px"> = 0.1.0 (August 21st, 2017) =
</span><span class="cx" style="display: block; padding: 0 10px"> * Initial release.
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+= 0.1.1 (May 12th, 2020) =
+* Updates for coding standards.
+* Update local and Travis CI builds.
+* Reduce number of revisions in index, while increasing max reporters shown.
+* Add contributor documentation.
+
+= 0.1.2 (May 18th, 2020) =
+* Only report result status when tests were actually run. Port of
+  [meta #7227](https://meta.trac.wordpress.org/changeset/7227) to plugin.
+* Upgrade packages for `grunt readme` to Grunt ^1.1.0 and
+  grunt-wp-readme-to-markdown ^2.0.1, and update plugin version in `package.json`.
+* Upgrade Docker environment to use `wordpress:5.4.1-php7.4` image.
+* Correct contributor list in `readme.txt` and update `README.md`.
</ins></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginsphpunittestreportersrcclasscontentmodelphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/plugins/phpunit-test-reporter/src/class-content-model.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/plugins/phpunit-test-reporter/src/class-content-model.php        2020-05-18 22:28:45 UTC (rev 9883)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/phpunit-test-reporter/src/class-content-model.php  2020-05-19 05:33:14 UTC (rev 9884)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -50,7 +50,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public static function action_init_register_role() {
</span><span class="cx" style="display: block; padding: 0 10px">                if ( ! get_role( 'test-reporter' ) ) {
</span><span class="cx" style="display: block; padding: 0 10px">                        add_role(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                'test-reporter', __( 'Test Reporter', 'ptr' ), array(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         'test-reporter',
+                               __( 'Test Reporter', 'ptr' ),
+                               array(
</ins><span class="cx" style="display: block; padding: 0 10px">                                         'read' => true,
</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="sitestrunkwordpressorgpublic_htmlwpcontentpluginsphpunittestreportersrcclassdisplayphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/plugins/phpunit-test-reporter/src/class-display.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/plugins/phpunit-test-reporter/src/class-display.php      2020-05-18 22:28:45 UTC (rev 9883)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/phpunit-test-reporter/src/class-display.php        2020-05-19 05:33:14 UTC (rev 9884)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -67,14 +67,17 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                if ( get_queried_object()->post_parent ) {
</span><span class="cx" style="display: block; padding: 0 10px">                        $content = ptr_get_template_part(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                'single-result', array(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         'single-result',
+                               array(
</ins><span class="cx" style="display: block; padding: 0 10px">                                         'report' => get_queried_object(),
</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">                } else {
</span><span class="cx" style="display: block; padding: 0 10px">                        $content = ptr_get_template_part(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                'result-set', array(
-                                       'revisions' => array(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         'result-set',
+                               array(
+                                       'posts_per_page' => 500,
+                                       'revisions'      => array(
</ins><span class="cx" style="display: block; padding: 0 10px">                                                 get_queried_object(),
</span><span class="cx" style="display: block; padding: 0 10px">                                        ),
</span><span class="cx" style="display: block; padding: 0 10px">                                )
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -92,7 +95,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $output     = '';
</span><span class="cx" style="display: block; padding: 0 10px">                $query_args = array(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        'posts_per_page' => 5,
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 'posts_per_page' => 3,
</ins><span class="cx" style="display: block; padding: 0 10px">                         'post_type'      => 'result',
</span><span class="cx" style="display: block; padding: 0 10px">                        'post_parent'    => 0,
</span><span class="cx" style="display: block; padding: 0 10px">                        'orderby'        => 'post_name',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -118,8 +121,10 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        $output .= self::get_reporter_avatars();
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span><span class="cx" style="display: block; padding: 0 10px">                $output .= ptr_get_template_part(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        'result-set', array(
-                               'revisions' => $rev_query->posts,
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 'result-set',
+                       array(
+                               'posts_per_page' => 50,
+                               'revisions'      => $rev_query->posts,
</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">                ob_start();
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginsphpunittestreportersrcclassrestapiphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/plugins/phpunit-test-reporter/src/class-restapi.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/plugins/phpunit-test-reporter/src/class-restapi.php      2020-05-18 22:28:45 UTC (rev 9883)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/phpunit-test-reporter/src/class-restapi.php        2020-05-19 05:33:14 UTC (rev 9884)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -12,7 +12,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public static function register_routes() {
</span><span class="cx" style="display: block; padding: 0 10px">                register_rest_route(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        'wp-unit-test-api/v1', 'results', array(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 'wp-unit-test-api/v1',
+                       'results',
+                       array(
</ins><span class="cx" style="display: block; padding: 0 10px">                                 'methods'             => 'POST',
</span><span class="cx" style="display: block; padding: 0 10px">                                'callback'            => array( __CLASS__, 'add_results_callback' ),
</span><span class="cx" style="display: block; padding: 0 10px">                                'args'                => array(
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -51,7 +53,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        case 'commit':
</span><span class="cx" style="display: block; padding: 0 10px">                                if ( ! is_numeric( $value ) ) {
</span><span class="cx" style="display: block; padding: 0 10px">                                        return new WP_Error(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                                'rest_invalid', __( 'Value must be numeric.', 'ptr' ), array(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                         'rest_invalid',
+                                               __( 'Value must be numeric.', 'ptr' ),
+                                               array(
</ins><span class="cx" style="display: block; padding: 0 10px">                                                         'status' => 400,
</span><span class="cx" style="display: block; padding: 0 10px">                                                )
</span><span class="cx" style="display: block; padding: 0 10px">                                        );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -60,7 +64,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        case 'message':
</span><span class="cx" style="display: block; padding: 0 10px">                                if ( empty( $value ) || ! is_string( $value ) ) {
</span><span class="cx" style="display: block; padding: 0 10px">                                        return new WP_Error(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                                'rest_invalid', __( 'Value must be a non-empty string.', 'ptr' ), array(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                         'rest_invalid',
+                                               __( 'Value must be a non-empty string.', 'ptr' ),
+                                               array(
</ins><span class="cx" style="display: block; padding: 0 10px">                                                         'status' => 400,
</span><span class="cx" style="display: block; padding: 0 10px">                                                )
</span><span class="cx" style="display: block; padding: 0 10px">                                        );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -70,7 +76,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        case 'results':
</span><span class="cx" style="display: block; padding: 0 10px">                                if ( null === json_decode( $value ) ) {
</span><span class="cx" style="display: block; padding: 0 10px">                                        return new WP_Error(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                                'rest_invalid', __( 'Value must be encoded JSON.', 'ptr' ), array(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                         'rest_invalid',
+                                               __( 'Value must be encoded JSON.', 'ptr' ),
+                                               array(
</ins><span class="cx" style="display: block; padding: 0 10px">                                                         'status' => 400,
</span><span class="cx" style="display: block; padding: 0 10px">                                                )
</span><span class="cx" style="display: block; padding: 0 10px">                                        );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -78,7 +86,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                return true;
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span><span class="cx" style="display: block; padding: 0 10px">                return new WP_Error(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        'rest_invalid', __( 'Invalid key specified.', 'ptr' ), array(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 'rest_invalid',
+                       __( 'Invalid key specified.', 'ptr' ),
+                       array(
</ins><span class="cx" style="display: block; padding: 0 10px">                                 'status' => 400,
</span><span class="cx" style="display: block; padding: 0 10px">                        )
</span><span class="cx" style="display: block; padding: 0 10px">                );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -87,7 +97,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public static function permission() {
</span><span class="cx" style="display: block; padding: 0 10px">                if ( ! current_user_can( 'edit_results' ) ) {
</span><span class="cx" style="display: block; padding: 0 10px">                        return new WP_Error(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                'rest_unauthorized', __( 'Sorry, you are not allowed to create results.', 'ptr' ), array(
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                         'rest_unauthorized',
+                               __( 'Sorry, you are not allowed to create results.', 'ptr' ),
+                               array(
</ins><span class="cx" style="display: block; padding: 0 10px">                                         'status' => is_user_logged_in() ? 403 : 401,
</span><span class="cx" style="display: block; padding: 0 10px">                                )
</span><span class="cx" style="display: block; padding: 0 10px">                        );
</span></span></pre>
</div>
</div>

</body>
</html>