<!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>[51702] trunk/tests/phpunit/tests: Tests: Add missing `@covers` tags for actions' tests.</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { white-space: pre-line; overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta" style="font-size: 105%">
<dt style="float: left; width: 6em; font-weight: bold">Revision</dt> <dd><a style="font-weight: bold" href="https://core.trac.wordpress.org/changeset/51702">51702</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/51702","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>hellofromTonya</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2021-08-31 17:22:32 +0000 (Tue, 31 Aug 2021)</dd>
</dl>
<pre style='padding-left: 1em; margin: 2em 0; border-left: 2px solid #ccc; line-height: 1.25; font-size: 105%; font-family: sans-serif'>Tests: Add missing `@covers` tags for actions' tests.
Props pbearne, hudson-atwell, jrf, hellofromTonya.
See <a href="https://core.trac.wordpress.org/ticket/39265">#39265</a>.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunktestsphpunittestsactionscallbacksphp">trunk/tests/phpunit/tests/actions/callbacks.php</a></li>
<li><a href="#trunktestsphpunittestsactionsclosuresphp">trunk/tests/phpunit/tests/actions/closures.php</a></li>
<li><a href="#trunktestsphpunittestsactionsphp">trunk/tests/phpunit/tests/actions.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunktestsphpunittestsactionscallbacksphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/actions/callbacks.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/actions/callbacks.php 2021-08-31 13:49:23 UTC (rev 51701)
+++ trunk/tests/phpunit/tests/actions/callbacks.php 2021-08-31 17:22:32 UTC (rev 51702)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -7,6 +7,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * @ticket 23265
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @covers ::add_action
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function test_callback_representations() {
</span><span class="cx" style="display: block; padding: 0 10px"> $tag = __FUNCTION__;
</span></span></pre></div>
<a id="trunktestsphpunittestsactionsclosuresphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/actions/closures.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/actions/closures.php 2021-08-31 13:49:23 UTC (rev 51701)
+++ trunk/tests/phpunit/tests/actions/closures.php 2021-08-31 17:22:32 UTC (rev 51702)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -9,6 +9,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"> * @ticket 10493
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @covers ::add_action
+ * @covers ::has_action
+ * @covers ::do_action
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function test_action_closure() {
</span><span class="cx" style="display: block; padding: 0 10px"> $tag = 'test_action_closure';
</span></span></pre></div>
<a id="trunktestsphpunittestsactionsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/actions.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/actions.php 2021-08-31 13:49:23 UTC (rev 51701)
+++ trunk/tests/phpunit/tests/actions.php 2021-08-31 17:22:32 UTC (rev 51702)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -7,6 +7,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> class Tests_Actions extends WP_UnitTestCase {
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @covers ::do_action
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> function test_simple_action() {
</span><span class="cx" style="display: block; padding: 0 10px"> $a = new MockAction();
</span><span class="cx" style="display: block; padding: 0 10px"> $tag = __FUNCTION__;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -24,6 +27,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( array( '' ), $args );
</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">+ /**
+ * @covers ::remove_action
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> function test_remove_action() {
</span><span class="cx" style="display: block; padding: 0 10px"> $a = new MockAction();
</span><span class="cx" style="display: block; padding: 0 10px"> $tag = __FUNCTION__;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -43,6 +49,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @covers ::has_action
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> function test_has_action() {
</span><span class="cx" style="display: block; padding: 0 10px"> $tag = __FUNCTION__;
</span><span class="cx" style="display: block; padding: 0 10px"> $func = __FUNCTION__ . '_func';
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -57,7 +66,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertFalse( has_action( $tag ) );
</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">- // One tag with multiple actions.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * One tag with multiple actions.
+ *
+ * @covers ::do_action
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> function test_multiple_actions() {
</span><span class="cx" style="display: block; padding: 0 10px"> $a1 = new MockAction();
</span><span class="cx" style="display: block; padding: 0 10px"> $a2 = new MockAction();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -74,6 +87,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( 1, $a2->get_call_count() );
</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">+ /**
+ * One tag with multiple actions.
+ *
+ * @covers ::do_action
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> function test_action_args_1() {
</span><span class="cx" style="display: block; padding: 0 10px"> $a = new MockAction();
</span><span class="cx" style="display: block; padding: 0 10px"> $tag = __FUNCTION__;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -89,6 +107,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( array( $val ), array_pop( $argsvar ) );
</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">+ /**
+ * One tag with multiple actions.
+ *
+ * @covers ::do_action
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> function test_action_args_2() {
</span><span class="cx" style="display: block; padding: 0 10px"> $a1 = new MockAction();
</span><span class="cx" style="display: block; padding: 0 10px"> $a2 = new MockAction();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -120,6 +143,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @see https://core.trac.wordpress.org/ticket/17817#comment:72
</span><span class="cx" style="display: block; padding: 0 10px"> * @ticket 17817
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @covers ::do_action
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function test_action_args_3() {
</span><span class="cx" style="display: block; padding: 0 10px"> $a1 = new MockAction();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -157,6 +182,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * Tests PHP 4 notation for calling actions while passing in an object by reference.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @ticket 48312
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @covers ::do_action
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function test_action_args_with_php4_syntax() {
</span><span class="cx" style="display: block; padding: 0 10px"> $a = new MockAction();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -201,6 +228,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( $expected, $a->get_events() );
</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">+ /**
+ * @covers ::did_action
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> function test_did_action() {
</span><span class="cx" style="display: block; padding: 0 10px"> $tag1 = 'action1';
</span><span class="cx" style="display: block; padding: 0 10px"> $tag2 = 'action2';
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -222,6 +252,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @covers ::do_action
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> function test_all_action() {
</span><span class="cx" style="display: block; padding: 0 10px"> $a = new MockAction();
</span><span class="cx" style="display: block; padding: 0 10px"> $tag1 = __FUNCTION__ . '_1';
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -246,6 +279,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @covers ::remove_action
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> function test_remove_all_action() {
</span><span class="cx" style="display: block; padding: 0 10px"> $a = new MockAction();
</span><span class="cx" style="display: block; padding: 0 10px"> $tag = __FUNCTION__;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -266,6 +302,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( array( $tag ), $a->get_tags() );
</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">+ /**
+ * @covers ::do_action_ref_array
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> function test_action_ref_array() {
</span><span class="cx" style="display: block; padding: 0 10px"> $obj = new stdClass();
</span><span class="cx" style="display: block; padding: 0 10px"> $a = new MockAction();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -284,6 +323,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * @ticket 11241
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @covers ::do_action
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function test_action_keyed_array() {
</span><span class="cx" style="display: block; padding: 0 10px"> $a = new MockAction();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -309,6 +350,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @covers ::remove_action
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> function test_action_self_removal() {
</span><span class="cx" style="display: block; padding: 0 10px"> add_action( 'test_action_self_removal', array( $this, 'action_self_removal' ) );
</span><span class="cx" style="display: block; padding: 0 10px"> do_action( 'test_action_self_removal' );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -321,6 +365,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * @ticket 17817
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @covers ::do_action
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function test_action_recursion() {
</span><span class="cx" style="display: block; padding: 0 10px"> $tag = __FUNCTION__;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -336,6 +382,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertSame( 2, $b->get_call_count(), 'recursive actions should call callbacks with later priority' );
</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">+ /**
+ * @covers ::do_action
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> function action_that_causes_recursion( $tag ) {
</span><span class="cx" style="display: block; padding: 0 10px"> static $recursing = false;
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! $recursing ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -348,6 +397,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * @ticket 9968
</span><span class="cx" style="display: block; padding: 0 10px"> * @ticket 17817
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @covers ::remove_action
+ * @covers ::add_action
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function test_action_callback_manipulation_while_running() {
</span><span class="cx" style="display: block; padding: 0 10px"> $tag = __FUNCTION__;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -383,6 +435,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * This specificaly addresses the concern raised at
</span><span class="cx" style="display: block; padding: 0 10px"> * https://core.trac.wordpress.org/ticket/17817#comment:52
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @covers ::remove_filter
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function test_remove_anonymous_callback() {
</span><span class="cx" style="display: block; padding: 0 10px"> $tag = __FUNCTION__;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -416,6 +470,10 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * Test the ArrayAccess methods of WP_Hook
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @ticket 17817
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @covers WP_Hook::offsetGet
+ * @covers WP_Hook::offsetSet
+ * @covers WP_Hook::offsetUnset
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function test_array_access_of_wp_filter_global() {
</span><span class="cx" style="display: block; padding: 0 10px"> global $wp_filter;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -442,6 +500,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * Make sure current_action() behaves as current_filter()
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @ticket 14994
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @covers ::current_action
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function test_current_action() {
</span><span class="cx" style="display: block; padding: 0 10px"> global $wp_current_filter;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -453,6 +513,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * @ticket 14994
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @covers ::doing_filter
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function test_doing_filter() {
</span><span class="cx" style="display: block; padding: 0 10px"> global $wp_current_filter;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -472,6 +534,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * @ticket 14994
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @covers ::doing_filter
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function test_doing_action() {
</span><span class="cx" style="display: block; padding: 0 10px"> global $wp_current_filter;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -491,6 +555,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * @ticket 14994
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @covers ::doing_filter
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function test_doing_filter_real() {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->assertFalse( doing_filter() ); // No filter is passed in, and no filter is being processed.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -541,6 +607,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * @ticket 10441
</span><span class="cx" style="display: block; padding: 0 10px"> * @expectedDeprecated tests_do_action_deprecated
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @covers ::do_action_deprecated
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_do_action_deprecated() {
</span><span class="cx" style="display: block; padding: 0 10px"> $p = new WP_Post( (object) array( 'post_title' => 'Foo' ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -559,6 +627,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * @ticket 10441
</span><span class="cx" style="display: block; padding: 0 10px"> * @expectedDeprecated tests_do_action_deprecated
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @covers ::do_action_deprecated
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function test_do_action_deprecated_with_multiple_params() {
</span><span class="cx" style="display: block; padding: 0 10px"> $p1 = new WP_Post( (object) array( 'post_title' => 'Foo1' ) );
</span></span></pre>
</div>
</div>
</body>
</html>