<!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>[54058] trunk/tests/phpunit/tests/rest-api: Tests: Explicitly mark empty REST API tests as not performing any assertions.</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/54058">54058</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/54058","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-01 22:54:19 +0000 (Thu, 01 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: Explicitly mark empty REST API tests as not performing any assertions.
WordPress core test suite uses PHPUnit's `beStrictAboutTestsThatDoNotTestAnything` option set to true, which marks a test as risky when no assertions are performed.
REST API test classes have some empty tests for non-implemented methods because these test classes extend the abstract `WP_Test_REST_Controller_Testcase` class, which requires several methods to be implemented that don't necessarily make sense for all REST API routes.
As these tests are intentionally empty, they were previously marked as skipped, so that they are not reported as risky.
This commit aims to further reduce noise in the test suite and effectively ignores these empty tests altogether, which seems like a more appropriate option at this time.
The `@doesNotPerformAssertions` annotation can be reconsidered in the future when the tests are either removed as unnecessary or updated to actually perform assertions related to their behavior.
Follow-up to <a href="https://core.trac.wordpress.org/changeset/40534">[40534]</a>, <a href="https://core.trac.wordpress.org/changeset/41176">[41176]</a>, <a href="https://core.trac.wordpress.org/changeset/41228">[41228]</a>, <a href="https://core.trac.wordpress.org/changeset/53921">[53921]</a>.
See <a href="https://core.trac.wordpress.org/ticket/40538">#40538</a>, <a href="https://core.trac.wordpress.org/ticket/41463">#41463</a>, <a href="https://core.trac.wordpress.org/ticket/55652">#55652</a>.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunktestsphpunittestsrestapirestautosavescontrollerphp">trunk/tests/phpunit/tests/rest-api/rest-autosaves-controller.php</a></li>
<li><a href="#trunktestsphpunittestsrestapirestblockdirectorycontrollerphp">trunk/tests/phpunit/tests/rest-api/rest-block-directory-controller.php</a></li>
<li><a href="#trunktestsphpunittestsrestapirestblockrenderercontrollerphp">trunk/tests/phpunit/tests/rest-api/rest-block-renderer-controller.php</a></li>
<li><a href="#trunktestsphpunittestsrestapirestblocktypecontrollerphp">trunk/tests/phpunit/tests/rest-api/rest-block-type-controller.php</a></li>
<li><a href="#trunktestsphpunittestsrestapirestglobalstylescontrollerphp">trunk/tests/phpunit/tests/rest-api/rest-global-styles-controller.php</a></li>
<li><a href="#trunktestsphpunittestsrestapirestpagescontrollerphp">trunk/tests/phpunit/tests/rest-api/rest-pages-controller.php</a></li>
<li><a href="#trunktestsphpunittestsrestapirestpatterndirectorycontrollerphp">trunk/tests/phpunit/tests/rest-api/rest-pattern-directory-controller.php</a></li>
<li><a href="#trunktestsphpunittestsrestapirestsettingscontrollerphp">trunk/tests/phpunit/tests/rest-api/rest-settings-controller.php</a></li>
<li><a href="#trunktestsphpunittestsrestapirestsidebarscontrollerphp">trunk/tests/phpunit/tests/rest-api/rest-sidebars-controller.php</a></li>
<li><a href="#trunktestsphpunittestsrestapirestthemescontrollerphp">trunk/tests/phpunit/tests/rest-api/rest-themes-controller.php</a></li>
<li><a href="#trunktestsphpunittestsrestapirestwidgettypescontrollerphp">trunk/tests/phpunit/tests/rest-api/rest-widget-types-controller.php</a></li>
<li><a href="#trunktestsphpunittestsrestapirestwidgetscontrollerphp">trunk/tests/phpunit/tests/rest-api/rest-widgets-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="#trunktestsphpunittestsrestapiwpRestEditSiteExportControllerphp">trunk/tests/phpunit/tests/rest-api/wpRestEditSiteExportController.php</a></li>
<li><a href="#trunktestsphpunittestsrestapiwpRestMenuLocationsControllerphp">trunk/tests/phpunit/tests/rest-api/wpRestMenuLocationsController.php</a></li>
<li><a href="#trunktestsphpunittestsrestapiwpRestTemplatesControllerphp">trunk/tests/phpunit/tests/rest-api/wpRestTemplatesController.php</a></li>
<li><a href="#trunktestsphpunittestsrestapiwpRestUrlDetailsControllerphp">trunk/tests/phpunit/tests/rest-api/wpRestUrlDetailsController.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunktestsphpunittestsrestapirestautosavescontrollerphp"></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-autosaves-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-autosaves-controller.php 2022-09-01 19:06:19 UTC (rev 54057)
+++ trunk/tests/phpunit/tests/rest-api/rest-autosaves-controller.php 2022-09-01 22:54:19 UTC (rev 54058)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -271,8 +271,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertErrorResponse( 'rest_post_invalid_parent', $response, 404 );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @doesNotPerformAssertions
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function test_delete_item() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not implement delete_item().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not implement delete_item().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_prepare_item() {
</span></span></pre></div>
<a id="trunktestsphpunittestsrestapirestblockdirectorycontrollerphp"></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-block-directory-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-block-directory-controller.php 2022-09-01 19:06:19 UTC (rev 54057)
+++ trunk/tests/phpunit/tests/rest-api/rest-block-directory-controller.php 2022-09-01 22:54:19 UTC (rev 54058)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -130,20 +130,32 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( array(), $data );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @doesNotPerformAssertions
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function test_get_item() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not implement get_item().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not implement get_item().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @doesNotPerformAssertions
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function test_create_item() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not implement create_item().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not implement create_item().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @doesNotPerformAssertions
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function test_update_item() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not implement update_item().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not implement update_item().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @doesNotPerformAssertions
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function test_delete_item() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not implement delete_item().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not implement delete_item().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span></span></pre></div>
<a id="trunktestsphpunittestsrestapirestblockrenderercontrollerphp"></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-block-renderer-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-block-renderer-controller.php 2022-09-01 19:06:19 UTC (rev 54057)
+++ trunk/tests/phpunit/tests/rest-api/rest-block-renderer-controller.php 2022-09-01 22:54:19 UTC (rev 54058)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -614,43 +614,55 @@
</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"> * The update_item() method does not exist for block rendering.
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @doesNotPerformAssertions
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_update_item() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not implement update_item().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not implement update_item().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * The create_item() method does not exist for block rendering.
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @doesNotPerformAssertions
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_create_item() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not implement create_item().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not implement create_item().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * The delete_item() method does not exist for block rendering.
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @doesNotPerformAssertions
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_delete_item() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not implement delete_item().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not implement delete_item().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * The get_items() method does not exist for block rendering.
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @doesNotPerformAssertions
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_get_items() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not implement get_items().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not implement get_items().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * The get_context_param() method is not used for block rendering.
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @doesNotPerformAssertions
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_context_param() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not use get_context_param().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not use get_context_param().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * The prepare_item() method does not exist for block rendering.
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @doesNotPerformAssertions
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_prepare_item() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not implement prepare_item().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not implement prepare_item().
</ins><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="trunktestsphpunittestsrestapirestblocktypecontrollerphp"></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-block-type-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-block-type-controller.php 2022-09-01 19:06:19 UTC (rev 54057)
+++ trunk/tests/phpunit/tests/rest-api/rest-block-type-controller.php 2022-09-01 22:54:19 UTC (rev 54058)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -552,22 +552,28 @@
</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"> * The create_item() method does not exist for block types.
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @doesNotPerformAssertions
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_create_item() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not implement create_item().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not implement create_item().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * The update_item() method does not exist for block types.
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @doesNotPerformAssertions
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_update_item() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not implement create_item().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not implement create_item().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * The delete_item() method does not exist for block types.
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @doesNotPerformAssertions
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_delete_item() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not implement delete_item().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not implement delete_item().
</ins><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="trunktestsphpunittestsrestapirestglobalstylescontrollerphp"></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-global-styles-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-global-styles-controller.php 2022-09-01 19:06:19 UTC (rev 54057)
+++ trunk/tests/phpunit/tests/rest-api/rest-global-styles-controller.php 2022-09-01 22:54:19 UTC (rev 54058)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -124,12 +124,18 @@
</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><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @doesNotPerformAssertions
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function test_context_param() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not use get_context_param().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not use get_context_param().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @doesNotPerformAssertions
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function test_get_items() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not implement get_items().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not implement get_items().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -382,8 +388,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertStringContainsString( '/wp/v2/global-styles/' . self::$global_styles_id, $links['self'][0]['href'] );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @doesNotPerformAssertions
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function test_create_item() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not implement create_item().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not implement create_item().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -437,12 +446,18 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertErrorResponse( 'rest_cannot_edit', $response, 403 );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @doesNotPerformAssertions
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function test_delete_item() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not implement delete_item().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not implement delete_item().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @doesNotPerformAssertions
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function test_prepare_item() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not implement prepare_item().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not implement prepare_item().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span></span></pre></div>
<a id="trunktestsphpunittestsrestapirestpagescontrollerphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/rest-api/rest-pages-controller.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/rest-api/rest-pages-controller.php 2022-09-01 19:06:19 UTC (rev 54057)
+++ trunk/tests/phpunit/tests/rest-api/rest-pages-controller.php 2022-09-01 22:54:19 UTC (rev 54058)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -408,8 +408,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( $post2, $data[0]['id'] );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @doesNotPerformAssertions
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function test_get_item() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not implement get_item().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not implement get_item().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_get_item_invalid_post_type() {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -419,8 +422,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( 404, $response->get_status() );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @doesNotPerformAssertions
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function test_create_item() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not implement create_item().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not implement create_item().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_create_item_with_template() {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -484,8 +490,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertErrorResponse( 'rest_post_invalid_id', $response, 400 );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @doesNotPerformAssertions
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function test_update_item() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not implement update_item().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not implement update_item().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_delete_item() {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -507,8 +516,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( 'trash', $data['status'] );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @doesNotPerformAssertions
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function test_prepare_item() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not implement prepare_item().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not implement prepare_item().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_prepare_item_limit_fields() {
</span></span></pre></div>
<a id="trunktestsphpunittestsrestapirestpatterndirectorycontrollerphp"></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-pattern-directory-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-pattern-directory-controller.php 2022-09-01 19:06:19 UTC (rev 54057)
+++ trunk/tests/phpunit/tests/rest-api/rest-pattern-directory-controller.php 2022-09-01 22:54:19 UTC (rev 54058)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -310,20 +310,32 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( 'modified the cache', $patterns[0] );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @doesNotPerformAssertions
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function test_get_item() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not implement get_item().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not implement get_item().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @doesNotPerformAssertions
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function test_create_item() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not implement create_item().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not implement create_item().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @doesNotPerformAssertions
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function test_update_item() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not implement update_item().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not implement update_item().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @doesNotPerformAssertions
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function test_delete_item() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not implement delete_item().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not implement delete_item().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -402,9 +414,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @covers WP_REST_Pattern_Directory_Controller::get_item_schema
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 5.8.0
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @doesNotPerformAssertions
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_get_item_schema() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( "The controller's schema is hardcoded, so tests would not be meaningful." );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // The controller's schema is hardcoded, so tests would not be meaningful.
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span></span></pre></div>
<a id="trunktestsphpunittestsrestapirestsettingscontrollerphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/rest-api/rest-settings-controller.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/rest-api/rest-settings-controller.php 2022-09-01 19:06:19 UTC (rev 54057)
+++ trunk/tests/phpunit/tests/rest-api/rest-settings-controller.php 2022-09-01 22:54:19 UTC (rev 54058)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -75,8 +75,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( 404, $response->get_status() );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @doesNotPerformAssertions
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function test_context_param() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not use get_context_param().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not use get_context_param().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_get_item_is_not_public_not_authenticated() {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -383,9 +386,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertNull( $data['mycustomsettinginrest'] );
</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">-
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @doesNotPerformAssertions
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function test_create_item() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not implement create_item().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not implement create_item().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_update_item() {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -665,12 +670,18 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( 404, $response->get_status() );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @doesNotPerformAssertions
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function test_prepare_item() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not implement prepare_item().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not implement prepare_item().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @doesNotPerformAssertions
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function test_get_item_schema() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not implement get_item_schema().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not implement get_item_schema().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span></span></pre></div>
<a id="trunktestsphpunittestsrestapirestsidebarscontrollerphp"></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-sidebars-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-sidebars-controller.php 2022-09-01 19:06:19 UTC (rev 54057)
+++ trunk/tests/phpunit/tests/rest-api/rest-sidebars-controller.php 2022-09-01 22:54:19 UTC (rev 54058)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -574,9 +574,11 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * The create_item() method does not exist for sidebar.
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @doesNotPerformAssertions
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_create_item() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not implement create_item().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not implement create_item().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -892,16 +894,20 @@
</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"> * The delete_item() method does not exist for sidebar.
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @doesNotPerformAssertions
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_delete_item() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not implement delete_item().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not implement delete_item().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * The prepare_item() method does not exist for sidebar.
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @doesNotPerformAssertions
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_prepare_item() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not implement prepare_item().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not implement prepare_item().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span></span></pre></div>
<a id="trunktestsphpunittestsrestapirestthemescontrollerphp"></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-themes-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-themes-controller.php 2022-09-01 19:06:19 UTC (rev 54057)
+++ trunk/tests/phpunit/tests/rest-api/rest-themes-controller.php 2022-09-01 22:54:19 UTC (rev 54058)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1200,16 +1200,20 @@
</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"> * The create_item() method does not exist for themes.
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @doesNotPerformAssertions
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_create_item() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not implement create_item().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not implement create_item().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * The update_item() method does not exist for themes.
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @doesNotPerformAssertions
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_update_item() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not implement update_item().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not implement update_item().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1398,15 +1402,19 @@
</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"> * The delete_item() method does not exist for themes.
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @doesNotPerformAssertions
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_delete_item() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not implement delete_item().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not implement delete_item().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Context is not supported for themes.
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @doesNotPerformAssertions
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_context_param() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not use get_context_param().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not use get_context_param().
</ins><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="trunktestsphpunittestsrestapirestwidgettypescontrollerphp"></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-widget-types-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-widget-types-controller.php 2022-09-01 19:06:19 UTC (rev 54057)
+++ trunk/tests/phpunit/tests/rest-api/rest-widget-types-controller.php 2022-09-01 22:54:19 UTC (rev 54058)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -532,22 +532,28 @@
</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"> * The create_item() method does not exist for widget types.
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @doesNotPerformAssertions
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_create_item() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not implement create_item().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not implement create_item().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * The update_item() method does not exist for widget types.
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @doesNotPerformAssertions
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_update_item() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not implement update_item().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not implement update_item().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * The delete_item() method does not exist for widget types.
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @doesNotPerformAssertions
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_delete_item() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not implement delete_item().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not implement delete_item().
</ins><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="trunktestsphpunittestsrestapirestwidgetscontrollerphp"></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-widgets-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-widgets-controller.php 2022-09-01 19:06:19 UTC (rev 54057)
+++ trunk/tests/phpunit/tests/rest-api/rest-widgets-controller.php 2022-09-01 22:54:19 UTC (rev 54058)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -214,10 +214,10 @@
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @ticket 41683
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @doesNotPerformAssertions
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_context_param() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not use get_context_param().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not use get_context_param().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1510,9 +1510,11 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * The prepare_item() method does not exist for sidebar.
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @doesNotPerformAssertions
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_prepare_item() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not implement prepare_item().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not implement prepare_item().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span></span></pre></div>
<a id="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-01 19:06:19 UTC (rev 54057)
+++ trunk/tests/phpunit/tests/rest-api/wpRestBlockPatternCategoriesController.php 2022-09-01 22:54:19 UTC (rev 54058)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -145,31 +145,52 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( 403, $response->get_status() );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @doesNotPerformAssertions
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function test_context_param() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not use get_context_param().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not use get_context_param().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @doesNotPerformAssertions
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function test_get_item() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not implement get_item().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not implement get_item().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @doesNotPerformAssertions
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function test_create_item() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not implement create_item().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not implement create_item().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @doesNotPerformAssertions
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function test_update_item() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not implement update_item().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not implement update_item().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @doesNotPerformAssertions
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function test_delete_item() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not implement delete_item().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not implement delete_item().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @doesNotPerformAssertions
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function test_prepare_item() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not implement prepare_item().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not implement prepare_item().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @doesNotPerformAssertions
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function test_get_item_schema() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not implement get_item_schema().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not implement get_item_schema().
</ins><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="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-01 19:06:19 UTC (rev 54057)
+++ trunk/tests/phpunit/tests/rest-api/wpRestBlockPatternsController.php 2022-09-01 22:54:19 UTC (rev 54058)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -171,31 +171,52 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( 403, $response->get_status() );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @doesNotPerformAssertions
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function test_context_param() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not use get_context_param().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not use get_context_param().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @doesNotPerformAssertions
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function test_get_item() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not implement get_item().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not implement get_item().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @doesNotPerformAssertions
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function test_create_item() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not implement create_item().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not implement create_item().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @doesNotPerformAssertions
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function test_update_item() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not implement update_item().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not implement update_item().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @doesNotPerformAssertions
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function test_delete_item() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not implement delete_item().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not implement delete_item().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @doesNotPerformAssertions
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function test_prepare_item() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not implement prepare_item().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not implement prepare_item().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @doesNotPerformAssertions
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function test_get_item_schema() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not implement get_item_schema().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not implement get_item_schema().
</ins><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="trunktestsphpunittestsrestapiwpRestEditSiteExportControllerphp"></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/wpRestEditSiteExportController.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/rest-api/wpRestEditSiteExportController.php 2022-09-01 19:06:19 UTC (rev 54057)
+++ trunk/tests/phpunit/tests/rest-api/wpRestEditSiteExportController.php 2022-09-01 22:54:19 UTC (rev 54058)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -99,58 +99,58 @@
</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">- * @ticket 54448
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @doesNotPerformAssertions
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_context_param() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not use get_context_param().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not use get_context_param().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @ticket 54448
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @doesNotPerformAssertions
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_get_item() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not implement get_item().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not implement get_item().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @ticket 54448
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @doesNotPerformAssertions
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_get_items() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not implement get_items().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not implement get_items().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @ticket 54448
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @doesNotPerformAssertions
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_create_item() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not implement create_item().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not implement create_item().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @ticket 54448
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @doesNotPerformAssertions
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_update_item() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not implement update_item().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not implement update_item().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @ticket 54448
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @doesNotPerformAssertions
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_delete_item() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not implement delete_item().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not implement delete_item().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @ticket 54448
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @doesNotPerformAssertions
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_prepare_item() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not implement prepare_item().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not implement prepare_item().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @ticket 54448
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @doesNotPerformAssertions
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_get_item_schema() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not implement get_item_schema().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not implement get_item_schema().
</ins><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="trunktestsphpunittestsrestapiwpRestMenuLocationsControllerphp"></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/wpRestMenuLocationsController.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/rest-api/wpRestMenuLocationsController.php 2022-09-01 19:06:19 UTC (rev 54057)
+++ trunk/tests/phpunit/tests/rest-api/wpRestMenuLocationsController.php 2022-09-01 22:54:19 UTC (rev 54058)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -141,30 +141,38 @@
</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"> * The create_item() method does not exist for menu locations.
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @doesNotPerformAssertions
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_create_item() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not implement create_item().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not implement create_item().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * The update_item() method does not exist for menu locations.
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @doesNotPerformAssertions
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_update_item() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not implement update_item().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not implement update_item().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * The delete_item() method does not exist for menu locations.
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @doesNotPerformAssertions
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_delete_item() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not implement delete_item().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not implement delete_item().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * The prepare_item() method does not exist for menu locations.
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @doesNotPerformAssertions
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_prepare_item() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not implement prepare_item().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not implement prepare_item().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span></span></pre></div>
<a id="trunktestsphpunittestsrestapiwpRestTemplatesControllerphp"></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/wpRestTemplatesController.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/rest-api/wpRestTemplatesController.php 2022-09-01 19:06:19 UTC (rev 54057)
+++ trunk/tests/phpunit/tests/rest-api/wpRestTemplatesController.php 2022-09-01 22:54:19 UTC (rev 54058)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -614,8 +614,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertErrorResponse( 'rest_template_not_found', $response, 404 );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @doesNotPerformAssertions
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function test_prepare_item() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not implement prepare_item().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not implement prepare_item().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_prepare_item_limit_fields() {
</span></span></pre></div>
<a id="trunktestsphpunittestsrestapiwpRestUrlDetailsControllerphp"></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/wpRestUrlDetailsController.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/rest-api/wpRestUrlDetailsController.php 2022-09-01 19:06:19 UTC (rev 54057)
+++ trunk/tests/phpunit/tests/rest-api/wpRestUrlDetailsController.php 2022-09-01 22:54:19 UTC (rev 54058)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1048,28 +1048,46 @@
</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><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @doesNotPerformAssertions
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function test_context_param() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not use get_context_param().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not use get_context_param().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @doesNotPerformAssertions
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function test_get_item() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not implement get_item().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not implement get_item().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @doesNotPerformAssertions
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function test_create_item() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not implement create_item().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not implement create_item().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @doesNotPerformAssertions
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function test_update_item() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not implement update_item().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not implement update_item().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @doesNotPerformAssertions
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function test_delete_item() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not implement delete_item().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not implement delete_item().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @doesNotPerformAssertions
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function test_prepare_item() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->markTestSkipped( 'Controller does not implement prepare_item().' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Controller does not implement prepare_item().
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span></span></pre>
</div>
</div>
</body>
</html>