<!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>[Tests][894] trunk: Convert knownWPBug and knownUTBug to @ticket annotations.</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 { 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, #logmsg > ol { margin-left: 0; 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">
<dt>Revision</dt> <dd><a href="http://unit-tests.trac.wordpress.org/changeset/894">894</a></dd>
<dt>Author</dt> <dd>nacin</dd>
<dt>Date</dt> <dd>2012-07-09 15:32:24 +0000 (Mon, 09 Jul 2012)</dd>
</dl>

<h3>Log Message</h3>
<pre>Convert knownWPBug and knownUTBug to @ticket annotations. fixes <a href="http://unit-tests.trac.wordpress.org/ticket/102">#102</a>.

Allows for an extra description to be included with the annotation,
which will be passed to markTestSkipped().</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkincludestestcasephp">trunk/includes/testcase.php</a></li>
<li><a href="#trunkteststestxmlrpcapitest_mw_getPostphp">trunk/tests/test-xmlrpc-api/test_mw_getPost.php</a></li>
<li><a href="#trunkteststestxmlrpcapitest_mw_newPostphp">trunk/tests/test-xmlrpc-api/test_mw_newPost.php</a></li>
<li><a href="#trunkteststestxmlrpcapitest_wp_getOptionsphp">trunk/tests/test-xmlrpc-api/test_wp_getOptions.php</a></li>
<li><a href="#trunkteststestxmlrpcapitest_wp_getPagephp">trunk/tests/test-xmlrpc-api/test_wp_getPage.php</a></li>
<li><a href="#trunkteststestxmlrpcapitest_wp_getPagesphp">trunk/tests/test-xmlrpc-api/test_wp_getPages.php</a></li>
<li><a href="#trunkteststestxmlrpcapitest_wp_getPostsphp">trunk/tests/test-xmlrpc-api/test_wp_getPosts.php</a></li>
<li><a href="#trunkteststest_actionsphp">trunk/tests/test_actions.php</a></li>
<li><a href="#trunkteststest_actions_closuresphp">trunk/tests/test_actions_closures.php</a></li>
<li><a href="#trunkteststest_admin_includes_themephp">trunk/tests/test_admin_includes_theme.php</a></li>
<li><a href="#trunkteststest_cronphp">trunk/tests/test_cron.php</a></li>
<li><a href="#trunkteststest_dbphp">trunk/tests/test_db.php</a></li>
<li><a href="#trunkteststest_filtersphp">trunk/tests/test_filters.php</a></li>
<li><a href="#trunkteststest_httpphp">trunk/tests/test_http.php</a></li>
<li><a href="#trunkteststest_imagephp">trunk/tests/test_image.php</a></li>
<li><a href="#trunkteststest_includes_balance_tagsphp">trunk/tests/test_includes_balance_tags.php</a></li>
<li><a href="#trunkteststest_includes_canonicalphp">trunk/tests/test_includes_canonical.php</a></li>
<li><a href="#trunkteststest_includes_capabilitiesphp">trunk/tests/test_includes_capabilities.php</a></li>
<li><a href="#trunkteststest_includes_classwpthemephp">trunk/tests/test_includes_class-wp-theme.php</a></li>
<li><a href="#trunkteststest_includes_feed_rss2php">trunk/tests/test_includes_feed_rss2.php</a></li>
<li><a href="#trunkteststest_includes_formattingphp">trunk/tests/test_includes_formatting.php</a></li>
<li><a href="#trunkteststest_includes_functionsphp">trunk/tests/test_includes_functions.php</a></li>
<li><a href="#trunkteststest_includes_ksesphp">trunk/tests/test_includes_kses.php</a></li>
<li><a href="#trunkteststest_includes_pluggablephp">trunk/tests/test_includes_pluggable.php</a></li>
<li><a href="#trunkteststest_includes_postphp">trunk/tests/test_includes_post.php</a></li>
<li><a href="#trunkteststest_includes_taxonomyphp">trunk/tests/test_includes_taxonomy.php</a></li>
<li><a href="#trunkteststest_includes_themephp">trunk/tests/test_includes_theme.php</a></li>
<li><a href="#trunkteststest_includes_wpscriptsphp">trunk/tests/test_includes_wp-scripts.php</a></li>
<li><a href="#trunkteststest_includes_wpstylesphp">trunk/tests/test_includes_wp-styles.php</a></li>
<li><a href="#trunkteststest_msphp">trunk/tests/test_ms.php</a></li>
<li><a href="#trunkteststest_post_filteringphp">trunk/tests/test_post_filtering.php</a></li>
<li><a href="#trunkteststest_queryphp">trunk/tests/test_query.php</a></li>
<li><a href="#trunkteststest_query_resultsphp">trunk/tests/test_query_results.php</a></li>
<li><a href="#trunkteststest_uploadsphp">trunk/tests/test_uploads.php</a></li>
<li><a href="#trunkteststest_userphp">trunk/tests/test_user.php</a></li>
<li><a href="#trunkteststest_user_capabilitiesphp">trunk/tests/test_user_capabilities.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkincludestestcasephp"></a>
<div class="modfile"><h4>Modified: trunk/includes/testcase.php (893 => 894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/includes/testcase.php        2012-07-09 14:38:23 UTC (rev 893)
+++ trunk/includes/testcase.php        2012-07-09 15:32:24 UTC (rev 894)
</span><span class="lines">@@ -124,10 +124,14 @@
</span><span class="cx">                         return;
</span><span class="cx">                 $tickets = PHPUnit_Util_Test::getTickets( get_class( $this ), $this-&gt;getName() );
</span><span class="cx">                 foreach ( $tickets as $ticket ) {
</span><ins>+                        $annotation = explode( ' ', $ticket, 2 );
+                        $ticket     = $annotation[0];
+                        $message    = isset( $annotation[1] ) ? $annotation[1] : '';
+
</ins><span class="cx">                         if ( is_numeric( $ticket ) ) {
</span><del>-                                $this-&gt;knownWPBug( $ticket );
</del><ins>+                                $this-&gt;knownWPBug( $ticket, $message );
</ins><span class="cx">                         } elseif ( 'UT' == substr( $ticket, 0, 2 ) ) {
</span><del>-                                $this-&gt;knownUTBug( substr( $ticket, 2 ) );
</del><ins>+                                $this-&gt;knownUTBug( substr( $ticket, 2 ), $message );
</ins><span class="cx">                         }
</span><span class="cx">                 }
</span><span class="cx">         }
</span><span class="lines">@@ -135,27 +139,27 @@
</span><span class="cx">         /**
</span><span class="cx">          * Skips the current test if there is an open WordPress ticket with id $ticket_id
</span><span class="cx">          */
</span><del>-        function knownWPBug( $ticket_id ) {
</del><ins>+        function knownWPBug( $ticket_id, $message = '' ) {
</ins><span class="cx">                 if ( ! WP_TESTS_FORCE_KNOWN_BUGS &amp;&amp; ! TracTickets::isTracTicketClosed( 'http://core.trac.wordpress.org', $ticket_id ) ) {
</span><del>-                        $this-&gt;markTestSkipped( sprintf( 'WordPress Ticket #%d is not fixed', $ticket_id ) );
</del><ins>+                        $this-&gt;markTestSkipped( sprintf( 'WordPress Ticket #%d is not fixed', $ticket_id ) . &quot;\n&quot; . $message );
</ins><span class="cx">                 }
</span><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         /**
</span><span class="cx">          * Skips the current test if there is an open unit tests ticket with id $ticket_id
</span><span class="cx">          */
</span><del>-        function knownUTBug( $ticket_id ) {
</del><ins>+        function knownUTBug( $ticket_id, $message = '' ) {
</ins><span class="cx">                 if ( ! WP_TESTS_FORCE_KNOWN_BUGS &amp;&amp; ! TracTickets::isTracTicketClosed( 'http://unit-tests.trac.wordpress.org', $ticket_id ) ) {
</span><del>-                        $this-&gt;markTestSkipped( sprintf( 'Unit Tests Ticket #%d is not fixed', $ticket_id ) );
</del><ins>+                        $this-&gt;markTestSkipped( sprintf( 'Unit Tests Ticket #%d is not fixed', $ticket_id ) . &quot;\n&quot; . $message );
</ins><span class="cx">                 }
</span><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         /**
</span><span class="cx">          * Skips the current test if there is an open plugin ticket with id $ticket_id
</span><span class="cx">          */
</span><del>-        function knownPluginBug( $ticket_id ) {
</del><ins>+        function knownPluginBug( $ticket_id, $message = '' ) {
</ins><span class="cx">                 if ( ! WP_TESTS_FORCE_KNOWN_BUGS &amp;&amp; ! TracTickets::isTracTicketClosed( 'http://plugins.trac.wordpress.org', $ticket_id ) ) {
</span><del>-                        $this-&gt;markTestSkipped( sprintf( 'WordPress Plugin Ticket #%d is not fixed', $ticket_id ) );
</del><ins>+                        $this-&gt;markTestSkipped( sprintf( 'WordPress Plugin Ticket #%d is not fixed', $ticket_id ) . &quot;\n&quot; . $message );
</ins><span class="cx">                 }
</span><span class="cx">         }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkteststestxmlrpcapitest_mw_getPostphp"></a>
<div class="modfile"><h4>Modified: trunk/tests/test-xmlrpc-api/test_mw_getPost.php (893 => 894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/tests/test-xmlrpc-api/test_mw_getPost.php        2012-07-09 14:38:23 UTC (rev 893)
+++ trunk/tests/test-xmlrpc-api/test_mw_getPost.php        2012-07-09 15:32:24 UTC (rev 894)
</span><span class="lines">@@ -37,9 +37,10 @@
</span><span class="cx">                 $this-&gt;assertEquals( 401, $result-&gt;code );
</span><span class="cx">         }
</span><span class="cx"> 
</span><ins>+        /**
+         * @ticket 20336
+         */
</ins><span class="cx">         function test_invalid_postid() {
</span><del>-                $this-&gt;knownWPBug(20336);
-
</del><span class="cx">                 $result = $this-&gt;myxmlrpcserver-&gt;mw_getPost( array( 9999, 'author', 'author' ) );
</span><span class="cx">                 $this-&gt;assertInstanceOf( 'IXR_Error', $result );
</span><span class="cx">                 $this-&gt;assertEquals( 404, $result-&gt;code );
</span></span></pre></div>
<a id="trunkteststestxmlrpcapitest_mw_newPostphp"></a>
<div class="modfile"><h4>Modified: trunk/tests/test-xmlrpc-api/test_mw_newPost.php (893 => 894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/tests/test-xmlrpc-api/test_mw_newPost.php        2012-07-09 14:38:23 UTC (rev 893)
+++ trunk/tests/test-xmlrpc-api/test_mw_newPost.php        2012-07-09 15:32:24 UTC (rev 894)
</span><span class="lines">@@ -85,8 +85,10 @@
</span><span class="cx">                 $this-&gt;assertEquals( 401, $result-&gt;code );
</span><span class="cx">         }
</span><span class="cx"> 
</span><ins>+        /**
+         * @ticket 20356
+         */
</ins><span class="cx">         function test_invalid_author() {
</span><del>-                $this-&gt;knownWPBug( 20356 );
</del><span class="cx">                 $this-&gt;make_user_by_role( 'editor' );
</span><span class="cx"> 
</span><span class="cx">                 $post = array( 'title' =&gt; 'Test', 'wp_author_id' =&gt; 99999999 );
</span></span></pre></div>
<a id="trunkteststestxmlrpcapitest_wp_getOptionsphp"></a>
<div class="modfile"><h4>Modified: trunk/tests/test-xmlrpc-api/test_wp_getOptions.php (893 => 894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/tests/test-xmlrpc-api/test_wp_getOptions.php        2012-07-09 14:38:23 UTC (rev 893)
+++ trunk/tests/test-xmlrpc-api/test_wp_getOptions.php        2012-07-09 15:32:24 UTC (rev 894)
</span><span class="lines">@@ -29,11 +29,11 @@
</span><span class="cx">                 $this-&gt;assertFalse( $result['default_comment_status']['readonly'] );
</span><span class="cx">         }
</span><span class="cx"> 
</span><ins>+        /**
+         * @ticket 20201
+         */
</ins><span class="cx">         function test_option_values_subscriber() {
</span><span class="cx">                 global $wp_version;
</span><del>-
-                $this-&gt;knownWPBug( 20201 );
-
</del><span class="cx">                 $this-&gt;make_user_by_role( 'subscriber' );
</span><span class="cx"> 
</span><span class="cx">                 $result = $this-&gt;myxmlrpcserver-&gt;wp_getOptions( array( 1, 'subscriber', 'subscriber' ) );
</span></span></pre></div>
<a id="trunkteststestxmlrpcapitest_wp_getPagephp"></a>
<div class="modfile"><h4>Modified: trunk/tests/test-xmlrpc-api/test_wp_getPage.php (893 => 894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/tests/test-xmlrpc-api/test_wp_getPage.php        2012-07-09 14:38:23 UTC (rev 893)
+++ trunk/tests/test-xmlrpc-api/test_wp_getPage.php        2012-07-09 15:32:24 UTC (rev 894)
</span><span class="lines">@@ -35,9 +35,10 @@
</span><span class="cx">                 $this-&gt;assertEquals( 403, $result-&gt;code );
</span><span class="cx">         }
</span><span class="cx"> 
</span><ins>+        /**
+         * @ticket 20336
+         */
</ins><span class="cx">         function test_invalid_pageid() {
</span><del>-                $this-&gt;knownWPBug(20336);
-
</del><span class="cx">                 $this-&gt;make_user_by_role( 'editor' );
</span><span class="cx"> 
</span><span class="cx">                 $result = $this-&gt;myxmlrpcserver-&gt;wp_getPage( array( 1, 9999, 'editor', 'editor' ) );
</span></span></pre></div>
<a id="trunkteststestxmlrpcapitest_wp_getPagesphp"></a>
<div class="modfile"><h4>Modified: trunk/tests/test-xmlrpc-api/test_wp_getPages.php (893 => 894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/tests/test-xmlrpc-api/test_wp_getPages.php        2012-07-09 14:38:23 UTC (rev 893)
+++ trunk/tests/test-xmlrpc-api/test_wp_getPages.php        2012-07-09 15:32:24 UTC (rev 894)
</span><span class="lines">@@ -59,9 +59,10 @@
</span><span class="cx">         return $caps;
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    function test_semi_capable_user() {
-        $this-&gt;knownWPBug( 20629 );
-
</del><ins>+        /**
+         * @ticket 20629
+         */
+        function test_semi_capable_user() {
</ins><span class="cx">         add_filter( 'map_meta_cap', array( $this, 'remove_editor_edit_page_cap') , 10, 4 );
</span><span class="cx"> 
</span><span class="cx">         $results = $this-&gt;myxmlrpcserver-&gt;wp_getPages( array( 1, 'editor', 'editor' ) );
</span></span></pre></div>
<a id="trunkteststestxmlrpcapitest_wp_getPostsphp"></a>
<div class="modfile"><h4>Modified: trunk/tests/test-xmlrpc-api/test_wp_getPosts.php (893 => 894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/tests/test-xmlrpc-api/test_wp_getPosts.php        2012-07-09 14:38:23 UTC (rev 893)
+++ trunk/tests/test-xmlrpc-api/test_wp_getPosts.php        2012-07-09 15:32:24 UTC (rev 894)
</span><span class="lines">@@ -11,9 +11,10 @@
</span><span class="cx">                 $this-&gt;assertEquals( 403, $result-&gt;code );
</span><span class="cx">         }
</span><span class="cx"> 
</span><ins>+        /**
+         * @ticket 20991
+         */
</ins><span class="cx">         function test_incapable_user() {
</span><del>-                $this-&gt;knownWPBug( 20991 );
-
</del><span class="cx">                 $this-&gt;make_user_by_role( 'subscriber' );
</span><span class="cx"> 
</span><span class="cx">                 $result = $this-&gt;myxmlrpcserver-&gt;wp_getPosts( array( 1, 'subscriber', 'subscriber' ) );
</span></span></pre></div>
<a id="trunkteststest_actionsphp"></a>
<div class="modfile"><h4>Modified: trunk/tests/test_actions.php (893 => 894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/tests/test_actions.php        2012-07-09 14:38:23 UTC (rev 893)
+++ trunk/tests/test_actions.php        2012-07-09 15:32:24 UTC (rev 894)
</span><span class="lines">@@ -217,8 +217,10 @@
</span><span class="cx">                 $this-&gt;assertFalse( empty($args[0][0]-&gt;foo) );
</span><span class="cx">         }
</span><span class="cx"> 
</span><ins>+        /**
+         * @ticket 11241
+         */
</ins><span class="cx">         function test_action_keyed_array() {
</span><del>-                $this-&gt;knownWPBug(11241);
</del><span class="cx">                 $a = new MockAction();
</span><span class="cx"> 
</span><span class="cx">                 $tag = rand_str();
</span></span></pre></div>
<a id="trunkteststest_actions_closuresphp"></a>
<div class="modfile"><h4>Modified: trunk/tests/test_actions_closures.php (893 => 894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/tests/test_actions_closures.php        2012-07-09 14:38:23 UTC (rev 893)
+++ trunk/tests/test_actions_closures.php        2012-07-09 15:32:24 UTC (rev 894)
</span><span class="lines">@@ -7,9 +7,10 @@
</span><span class="cx">  */
</span><span class="cx"> class WP_Test_Actions_Closures extends WP_UnitTestCase {
</span><span class="cx"> 
</span><ins>+        /**
+         * @ticket 10493
+         */
</ins><span class="cx">         function test_action_closure() {
</span><del>-                $this-&gt;knownWPBug(10493);
-
</del><span class="cx">                 $tag = rand_str();
</span><span class="cx">                 $closure = function($a, $b) { $GLOBALS[$a] = $b;};
</span><span class="cx">                 add_action($tag, $closure, 10, 2);
</span></span></pre></div>
<a id="trunkteststest_admin_includes_themephp"></a>
<div class="modfile"><h4>Modified: trunk/tests/test_admin_includes_theme.php (893 => 894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/tests/test_admin_includes_theme.php        2012-07-09 14:38:23 UTC (rev 893)
+++ trunk/tests/test_admin_includes_theme.php        2012-07-09 15:32:24 UTC (rev 894)
</span><span class="lines">@@ -35,9 +35,11 @@
</span><span class="cx">                 return $this-&gt;theme_root;
</span><span class="cx">         }
</span><span class="cx"> 
</span><ins>+        /**
+         * @ticket 10959
+         * @ticket 11216
+         */
</ins><span class="cx">         function test_page_templates() {
</span><del>-                $this-&gt;knownWPBug(10959);
-                $this-&gt;knownWPBug(11216);
</del><span class="cx">                 $theme = get_theme('Page Template Theme');
</span><span class="cx">                 $this-&gt;assertFalse( empty($theme) );
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkteststest_cronphp"></a>
<div class="modfile"><h4>Modified: trunk/tests/test_cron.php (893 => 894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/tests/test_cron.php        2012-07-09 14:38:23 UTC (rev 893)
+++ trunk/tests/test_cron.php        2012-07-09 15:32:24 UTC (rev 894)
</span><span class="lines">@@ -150,8 +150,10 @@
</span><span class="cx">                 $this-&gt;assertFalse( wp_next_scheduled($hook, $args) );
</span><span class="cx">         }
</span><span class="cx"> 
</span><ins>+        /**
+         * @ticket 10468
+         */
</ins><span class="cx">         function test_clear_schedule_new_args() {
</span><del>-                $this-&gt;knownWPBug(10468);
</del><span class="cx">                 $hook = rand_str();
</span><span class="cx">                 $args = array(rand_str());
</span><span class="cx">                 $multi_hook = rand_str();
</span><span class="lines">@@ -187,8 +189,10 @@
</span><span class="cx"> 
</span><span class="cx">         }
</span><span class="cx"> 
</span><ins>+        /**
+         * @ticket 6966
+         */
</ins><span class="cx">         function test_duplicate_event() {
</span><del>-                $this-&gt;knownWPBug(6966);
</del><span class="cx">                 // duplicate events close together should be skipped
</span><span class="cx">                 $hook = rand_str();
</span><span class="cx">                 $args = array(rand_str());
</span><span class="lines">@@ -204,8 +208,10 @@
</span><span class="cx">                 $this-&gt;assertEquals( $ts1, wp_next_scheduled($hook, $args) );
</span><span class="cx">         }
</span><span class="cx"> 
</span><ins>+        /**
+         * @ticket 6966
+         */
</ins><span class="cx">         function test_not_duplicate_event() {
</span><del>-                $this-&gt;knownWPBug(6966);
</del><span class="cx">                 // duplicate events far apart should work normally
</span><span class="cx">                 $hook = rand_str();
</span><span class="cx">                 $args = array(rand_str());
</span></span></pre></div>
<a id="trunkteststest_dbphp"></a>
<div class="modfile"><h4>Modified: trunk/tests/test_db.php (893 => 894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/tests/test_db.php        2012-07-09 14:38:23 UTC (rev 893)
+++ trunk/tests/test_db.php        2012-07-09 15:32:24 UTC (rev 894)
</span><span class="lines">@@ -43,12 +43,12 @@
</span><span class="cx">         /**
</span><span class="cx">          * Test that floats formatted as &quot;0,700&quot; get sanitized properly by wpdb
</span><span class="cx">          * @global mixed $wpdb
</span><ins>+         *
+         * @ticket 19861
</ins><span class="cx">          */
</span><span class="cx">         public function test_locale_floats() {
</span><span class="cx">                 global $wpdb;
</span><span class="cx"> 
</span><del>-                $this-&gt;knownWPBug( 19861 );
-
</del><span class="cx">                 // Save the current locale
</span><span class="cx">                 $current_locale = setlocale( LC_ALL, NULL );
</span><span class="cx">                 
</span></span></pre></div>
<a id="trunkteststest_filtersphp"></a>
<div class="modfile"><h4>Modified: trunk/tests/test_filters.php (893 => 894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/tests/test_filters.php        2012-07-09 14:38:23 UTC (rev 893)
+++ trunk/tests/test_filters.php        2012-07-09 15:32:24 UTC (rev 894)
</span><span class="lines">@@ -192,8 +192,10 @@
</span><span class="cx">                 $this-&gt;assertEquals(array($tag), $a-&gt;get_tags());
</span><span class="cx">         }
</span><span class="cx"> 
</span><ins>+        /**
+         * @ticket 9886
+         */
</ins><span class="cx">         function test_filter_ref_array() {
</span><del>-                $this-&gt;knownWPBug(9886);
</del><span class="cx">                 $obj = new stdClass();
</span><span class="cx">                 $a = new MockAction();
</span><span class="cx">                 $tag = rand_str();
</span><span class="lines">@@ -209,8 +211,10 @@
</span><span class="cx">                 $this-&gt;assertFalse( empty($args[0][0]-&gt;foo) );
</span><span class="cx">         }
</span><span class="cx"> 
</span><ins>+        /**
+         * @ticket 12723
+         */
</ins><span class="cx">         function test_filter_ref_array_result() {
</span><del>-                $this-&gt;knownWPBug(12723);
</del><span class="cx">                 $obj = new stdClass();
</span><span class="cx">                 $a = new MockAction();
</span><span class="cx">                 $b = new MockAction();
</span></span></pre></div>
<a id="trunkteststest_httpphp"></a>
<div class="modfile"><h4>Modified: trunk/tests/test_http.php (893 => 894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/tests/test_http.php        2012-07-09 14:38:23 UTC (rev 893)
+++ trunk/tests/test_http.php        2012-07-09 15:32:24 UTC (rev 894)
</span><span class="lines">@@ -58,16 +58,20 @@
</span><span class="cx">                 $this-&gt;assertEquals(200, (int)$res['response']['code'] );
</span><span class="cx">         }
</span><span class="cx"> 
</span><ins>+        /**
+         * @ticket 16855
+         */
</ins><span class="cx">         function test_redirect_on_301_no_redirect() {
</span><del>-                $this-&gt;knownWPBug(16855);
</del><span class="cx">                 // 5 &gt; 0 &amp; 301
</span><span class="cx">                 $res = wp_remote_request($this-&gt;redirection_script . '?code=301&amp;rt=' . 5, array('redirection' =&gt; 0) );
</span><span class="cx">                 $this-&gt;assertFalse( is_wp_error($res) );
</span><span class="cx">                 $this-&gt;assertEquals(301, (int)$res['response']['code'] );
</span><span class="cx">         }
</span><span class="cx"> 
</span><ins>+        /**
+         * @ticket 16855
+         */
</ins><span class="cx">         function test_redirect_on_302_no_redirect() {
</span><del>-                $this-&gt;knownWPBug(16855);
</del><span class="cx">                 // 5 &gt; 0 &amp; 302
</span><span class="cx">                 $res = wp_remote_request($this-&gt;redirection_script . '?code=302&amp;rt=' . 5, array('redirection' =&gt; 0) );
</span><span class="cx">                 $this-&gt;assertFalse( is_wp_error($res) );
</span><span class="lines">@@ -88,8 +92,10 @@
</span><span class="cx">                 $this-&gt;assertEquals( 302, (int)$res['response']['code'] );
</span><span class="cx">         }
</span><span class="cx"> 
</span><ins>+        /**
+         * @ticket 16855
+         */
</ins><span class="cx">         function test_redirect_on_head() {
</span><del>-                $this-&gt;knownWPBug(16855);
</del><span class="cx">                 // Redirections on HEAD request when Requested
</span><span class="cx">                 $res = wp_remote_request($this-&gt;redirection_script . '?rt=' . 5, array('redirection' =&gt; 5, 'method' =&gt; 'HEAD') );
</span><span class="cx">                 $this-&gt;assertFalse( is_wp_error($res) );
</span><span class="lines">@@ -114,25 +120,34 @@
</span><span class="cx">                 $this-&gt;assertFalse( is_wp_error($res) );
</span><span class="cx">         }
</span><span class="cx"> 
</span><ins>+        /**
+         * @ticket 16855
+         */
</ins><span class="cx">         function test_redirections_zero_redirections_specified() {
</span><del>-                $this-&gt;knownWPBug(16855);
</del><span class="cx">                 // 0 redirections asked for, Should return the document?
</span><span class="cx">                 $res = wp_remote_request($this-&gt;redirection_script . '?code=302&amp;rt=' . 5, array('redirection' =&gt; 0) );
</span><span class="cx">                 $this-&gt;assertFalse( is_wp_error($res) );
</span><span class="cx">                 $this-&gt;assertEquals( 302, (int)$res['response']['code'] );
</span><span class="cx">         }
</span><span class="cx"> 
</span><ins>+        /**
+         * Do not redirect on non 3xx status codes
+         *
+         * @ticket 16889
+         *
+         * Is this valid? Streams, cURL and therefore PHP Extension (ie. all PHP Internal) follow redirects
+         * on all status codes, currently all of WP_HTTP follows this template.
+         */
</ins><span class="cx">         function test_location_header_on_200() {
</span><del>-                //$this-&gt;knownWPBug(16889);
-                // Is this valid? Streams, cURL and therefor, PHP Extension (ie. all PHP Internal) follow redirects on all status codes, currently all of WP_HTTP follows this template.
-
-                // Do not redirect on non 3xx status codes
-                //$res = wp_remote_request( $this-&gt;redirection_script . '?200-location=true' ); // Prints PASS on initial load, FAIL if the client follows the specified redirection
-                //$this-&gt;assertEquals( 'PASS', $res['body']);
</del><ins>+                // Prints PASS on initial load, FAIL if the client follows the specified redirection
+                $res = wp_remote_request( $this-&gt;redirection_script . '?200-location=true' );
+                $this-&gt;assertEquals( 'PASS', $res['body']);
</ins><span class="cx">         }
</span><span class="cx"> 
</span><ins>+        /**
+         * @ticket 11888
+         */
</ins><span class="cx">         function test_send_headers() {
</span><del>-                $this-&gt;knownWPBug(11888);
</del><span class="cx">                 // Test that the headers sent are recieved by the server
</span><span class="cx">                 $headers = array('test1' =&gt; 'test', 'test2' =&gt; 0, 'test3' =&gt; '');
</span><span class="cx">                 $res = wp_remote_request( $this-&gt;redirection_script . '?header-check', array('headers' =&gt; $headers) );
</span></span></pre></div>
<a id="trunkteststest_imagephp"></a>
<div class="modfile"><h4>Modified: trunk/tests/test_image.php (893 => 894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/tests/test_image.php        2012-07-09 14:38:23 UTC (rev 893)
+++ trunk/tests/test_image.php        2012-07-09 15:32:24 UTC (rev 894)
</span><span class="lines">@@ -82,8 +82,10 @@
</span><span class="cx"> 
</span><span class="cx">         }
</span><span class="cx"> 
</span><ins>+        /**
+         * @ticket 6571
+         */
</ins><span class="cx">         function test_exif_error() {
</span><del>-                $this-&gt;knownWPBug(6571);
</del><span class="cx"> 
</span><span class="cx">                 // http://trac.wordpress.org/ticket/6571
</span><span class="cx">                 // this triggers a warning mesage when reading the exif block
</span><span class="lines">@@ -117,8 +119,10 @@
</span><span class="cx">                 $this-&gt;assertEquals('', $out['title']);
</span><span class="cx">         }
</span><span class="cx"> 
</span><ins>+        /**
+         * @ticket 9417
+         */
</ins><span class="cx">         function test_utf8_iptc_tags() {
</span><del>-                $this-&gt;knownWPBug(9417);
</del><span class="cx"> 
</span><span class="cx">                 // trilingual UTF-8 text in the ITPC caption-abstract field 
</span><span class="cx">                 $out = wp_read_image_metadata(DIR_TESTDATA.'/images/test-image-iptc.jpg');
</span></span></pre></div>
<a id="trunkteststest_includes_balance_tagsphp"></a>
<div class="modfile"><h4>Modified: trunk/tests/test_includes_balance_tags.php (893 => 894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/tests/test_includes_balance_tags.php        2012-07-09 14:38:23 UTC (rev 893)
+++ trunk/tests/test_includes_balance_tags.php        2012-07-09 15:32:24 UTC (rev 894)
</span><span class="lines">@@ -27,10 +27,13 @@
</span><span class="cx">                         $this-&gt;assertEquals( &quot;&lt;$tag /&gt;&quot;, balanceTags( &quot;&lt;$tag&gt;&quot;, true ) );
</span><span class="cx">                 }
</span><span class="cx">         }
</span><del>-
-        // If a recognized valid single tag appears unclosed, it should get self-closed
</del><ins>+ 
+        /**
+         * If a recognized valid single tag appears unclosed, it should get self-closed
+         *
+         * @ticket 1597
+         */
</ins><span class="cx">         function test_selfcloses_unclosed_known_single_tags() {
</span><del>-                $this-&gt;knownWPBug( 1597 );
</del><span class="cx"> 
</span><span class="cx">                 foreach ( $this-&gt;single_tags as $tag ) {
</span><span class="cx">                         $this-&gt;assertEquals( &quot;&lt;$tag /&gt;&quot;, balanceTags( &quot;&lt;$tag&gt;&quot;, true ) );
</span><span class="lines">@@ -46,18 +49,23 @@
</span><span class="cx">                 }
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        // If a recognized valid single tag is given a closing tag, the closing tag
-        //   should get removed and tag should be self-closed.
</del><ins>+        /**
+         * If a recognized valid single tag is given a closing tag, the closing tag
+         *   should get removed and tag should be self-closed.
+         *
+         * @ticket 1597
+         */
</ins><span class="cx">         function test_selfcloses_known_single_tags_having_closing_tag() {
</span><del>-                $this-&gt;knownWPBug( 1597 );
</del><span class="cx"> 
</span><span class="cx">                 foreach ( $this-&gt;single_tags as $tag ) {
</span><span class="cx">                         $this-&gt;assertEquals( &quot;&lt;$tag /&gt;&quot;, balanceTags( &quot;&lt;$tag&gt;&lt;/$tag&gt;&quot;, true ) );
</span><span class="cx">                 }
</span><span class="cx">         }
</span><span class="cx"> 
</span><ins>+        /**
+         * @ticket 1597
+         */
</ins><span class="cx">         function test_closes_unknown_single_tags_with_closing_tag() {
</span><del>-                $this-&gt;knownWPBug( 1597 );
</del><span class="cx"> 
</span><span class="cx">                 $inputs = array(
</span><span class="cx">                         '&lt;strong/&gt;',
</span><span class="lines">@@ -136,8 +144,10 @@
</span><span class="cx">                 }
</span><span class="cx">         }
</span><span class="cx"> 
</span><ins>+        /**
+         * @ticket 20401
+         */
</ins><span class="cx">         function test_allows_immediately_nested_object_tags() {
</span><del>-                $this-&gt;knownWPBug( 20401 );
</del><span class="cx"> 
</span><span class="cx">                 $object = '&lt;object id=&quot;obj1&quot;&gt;&lt;param name=&quot;param1&quot;/&gt;&lt;object id=&quot;obj2&quot;&gt;&lt;param name=&quot;param2&quot;/&gt;&lt;/object&gt;&lt;/object&gt;';
</span><span class="cx">                 $this-&gt;assertEquals( $object, balanceTags( $object, true ) );
</span></span></pre></div>
<a id="trunkteststest_includes_canonicalphp"></a>
<div class="modfile"><h4>Modified: trunk/tests/test_includes_canonical.php (893 => 894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/tests/test_includes_canonical.php        2012-07-09 14:38:23 UTC (rev 893)
+++ trunk/tests/test_includes_canonical.php        2012-07-09 15:32:24 UTC (rev 894)
</span><span class="lines">@@ -102,7 +102,7 @@
</span><span class="cx">          */
</span><span class="cx">         function test($test_url, $expected, $ticket = 0) {
</span><span class="cx">                 if ( $ticket )
</span><del>-                        $this-&gt;knownWPBug($ticket);
</del><ins>+                        $this-&gt;knownWPBug( $ticket );
</ins><span class="cx"> 
</span><span class="cx">                 $ticket_ref = ($ticket &gt; 0) ? 'Ticket #' . $ticket : null;
</span><span class="cx">                 
</span></span></pre></div>
<a id="trunkteststest_includes_capabilitiesphp"></a>
<div class="modfile"><h4>Modified: trunk/tests/test_includes_capabilities.php (893 => 894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/tests/test_includes_capabilities.php        2012-07-09 14:38:23 UTC (rev 893)
+++ trunk/tests/test_includes_capabilities.php        2012-07-09 15:32:24 UTC (rev 894)
</span><span class="lines">@@ -215,8 +215,10 @@
</span><span class="cx">                 }
</span><span class="cx">         }
</span><span class="cx"> 
</span><ins>+        /**
+         * @ticket 20488
+         */
</ins><span class="cx">         function test_file_edit_caps_not_reliant_on_unfiltered_html_constant() {
</span><del>-                $this-&gt;knownWPBug(20488);
</del><span class="cx">                 if ( defined( 'DISALLOW_FILE_MODS' ) || defined( 'DISALLOW_FILE_EDIT' ) )
</span><span class="cx">                         $this-&gt;markTestSkipped('DISALLOW_FILE_MODS or DISALLOW_FILE_EDIT is defined.');
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkteststest_includes_classwpthemephp"></a>
<div class="modfile"><h4>Modified: trunk/tests/test_includes_class-wp-theme.php (893 => 894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/tests/test_includes_class-wp-theme.php        2012-07-09 14:38:23 UTC (rev 893)
+++ trunk/tests/test_includes_class-wp-theme.php        2012-07-09 15:32:24 UTC (rev 894)
</span><span class="lines">@@ -70,8 +70,10 @@
</span><span class="cx">                 $this-&gt;assertEquals( 'subdir/theme2', $theme-&gt;get_template() );
</span><span class="cx">         }
</span><span class="cx"> 
</span><ins>+        /**
+         * @ticket 20313
+         */
</ins><span class="cx">         function test_new_WP_Theme_subdir_bad_root() {
</span><del>-                $this-&gt;knownWPBug( 20313 );
</del><span class="cx">                 // This is what get_theme_data() does when you pass it a style.css file for a theme in a subdir.
</span><span class="cx">                 $theme = new WP_Theme( 'theme2', $this-&gt;theme_root . '/subdir' );
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkteststest_includes_feed_rss2php"></a>
<div class="modfile"><h4>Modified: trunk/tests/test_includes_feed_rss2.php (893 => 894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/tests/test_includes_feed_rss2.php        2012-07-09 14:38:23 UTC (rev 893)
+++ trunk/tests/test_includes_feed_rss2.php        2012-07-09 15:32:24 UTC (rev 894)
</span><span class="lines">@@ -78,9 +78,10 @@
</span><span class="cx">                 $this-&gt;assertEquals(strtotime(get_lastpostmodified()), strtotime($pubdate[0]['content']));
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-
</del><ins>+        /**
+         * @ticket UT32
+         */
</ins><span class="cx">         function test_items() {
</span><del>-                $this-&gt;knownUTBug(32);
</del><span class="cx">                 $this-&gt;go_to('/feed/');
</span><span class="cx">                 $feed = $this-&gt;do_rss2();
</span><span class="cx">                 $xml = xml_to_array($feed);
</span></span></pre></div>
<a id="trunkteststest_includes_formattingphp"></a>
<div class="modfile"><h4>Modified: trunk/tests/test_includes_formatting.php (893 => 894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/tests/test_includes_formatting.php        2012-07-09 14:38:23 UTC (rev 893)
+++ trunk/tests/test_includes_formatting.php        2012-07-09 15:32:24 UTC (rev 894)
</span><span class="lines">@@ -288,8 +288,10 @@
</span><span class="cx">                 }
</span><span class="cx">         }
</span><span class="cx"> 
</span><ins>+        /**
+         * @ticket 16892
+         */
</ins><span class="cx">         function test_click_inside_html() {
</span><del>-                $this-&gt;knownWPBug( 16892 );
</del><span class="cx">                 $urls_before = array(
</span><span class="cx">                         '&lt;span&gt;http://example.com&lt;/span&gt;',
</span><span class="cx">                         '&lt;p&gt;http://example.com/&lt;/p&gt;',
</span><span class="lines">@@ -326,8 +328,10 @@
</span><span class="cx">                         $this-&gt;assertEquals( $in, $out );
</span><span class="cx">         }
</span><span class="cx"> 
</span><ins>+        /**
+         * @ticket 16859
+         */
</ins><span class="cx">         function test_square_brackets() {
</span><del>-                $this-&gt;knownWPBug( 16859 );
</del><span class="cx">                 $urls_before = array(
</span><span class="cx">                         'http://example.com/?foo[bar]=baz',
</span><span class="cx">                         'http://example.com/?baz=bar&amp;foo[bar]=baz',
</span><span class="lines">@@ -504,7 +508,10 @@
</span><span class="cx">                 $this-&gt;assertEquals(' &amp;#8220;test&amp;#8217;s quoted&amp;#8221; ', wptexturize(' &quot;test\'s quoted&quot; '));
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        //WP Tickets #4539, #15241
</del><ins>+        /**
+         * @ticket 4539
+         * @ticket 15241
+         */
</ins><span class="cx">         function test_full_sentences_with_unmatched_single_quotes() {
</span><span class="cx">                 $this-&gt;assertEquals(
</span><span class="cx">                         'That means every moment you&amp;#8217;re working on something without it being in the public it&amp;#8217;s actually dying.',
</span><span class="lines">@@ -512,9 +519,10 @@
</span><span class="cx">                 );
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        //WP Ticket #4539
</del><ins>+        /**
+         * @ticket 4539
+         */
</ins><span class="cx">         function test_quotes() {
</span><del>-                $this-&gt;knownWPBug(4539);
</del><span class="cx">                 $this-&gt;assertEquals('&amp;#8220;Quoted String&amp;#8221;', wptexturize('&quot;Quoted String&quot;'));
</span><span class="cx">                 $this-&gt;assertEquals('Here is &amp;#8220;&lt;a href=&quot;http://example.com&quot;&gt;a test with a link&lt;/a&gt;&amp;#8221;', wptexturize('Here is &quot;&lt;a href=&quot;http://example.com&quot;&gt;a test with a link&lt;/a&gt;&quot;'));
</span><span class="cx">                 $this-&gt;assertEquals('Here is &amp;#8220;&lt;a href=&quot;http://example.com&quot;&gt;a test with a link and a period&lt;/a&gt;&amp;#8221;.', wptexturize('Here is &quot;&lt;a href=&quot;http://example.com&quot;&gt;a test with a link and a period&lt;/a&gt;&quot;.'));
</span><span class="lines">@@ -530,9 +538,10 @@
</span><span class="cx">                 $this-&gt;assertEquals('A test with a number, &amp;#8220;like 62&amp;#8221;, is nice to have.', wptexturize('A test with a number, &quot;like 62&quot;, is nice to have.'));
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        //WP Ticket #4539
</del><ins>+        /**
+         * @ticket 4539
+         */
</ins><span class="cx">         function test_quotes_before_s() {
</span><del>-                $this-&gt;knownWPBug(4539);
</del><span class="cx">                 $this-&gt;assertEquals('test&amp;#8217;s', wptexturize(&quot;test's&quot;));
</span><span class="cx">                 $this-&gt;assertEquals('&amp;#8216;test&amp;#8217;s', wptexturize(&quot;'test's&quot;));
</span><span class="cx">                 $this-&gt;assertEquals('&amp;#8216;test&amp;#8217;s&amp;#8217;', wptexturize(&quot;'test's'&quot;));
</span><span class="lines">@@ -540,9 +549,10 @@
</span><span class="cx">                 $this-&gt;assertEquals('&amp;#8216;string&amp;#8217;s&amp;#8217;', wptexturize(&quot;'string's'&quot;));
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        //WP Ticket #4539
</del><ins>+        /**
+         * @ticket 4539
+         */
</ins><span class="cx">         function test_quotes_before_numbers() {
</span><del>-                $this-&gt;knownWPBug(4539);
</del><span class="cx">                 $this-&gt;assertEquals('Class of &amp;#8217;99', wptexturize(&quot;Class of '99&quot;));
</span><span class="cx">                 $this-&gt;assertEquals('Class of &amp;#8217;99&amp;#8217;s', wptexturize(&quot;Class of '99's&quot;));
</span><span class="cx">                 $this-&gt;assertEquals('&amp;#8216;Class of &amp;#8217;99&amp;#8217;', wptexturize(&quot;'Class of '99'&quot;));
</span><span class="lines">@@ -556,9 +566,11 @@
</span><span class="cx">                 $this-&gt;assertEquals('Class of &amp;#8217;99', wptexturize(&quot;Class of '99&quot;));
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        //WP Ticket #15241 and #4539
</del><ins>+        /**
+         * @ticket 4539
+         * @ticket 15241
+         */
</ins><span class="cx">         function test_other_html() {
</span><del>-                $this-&gt;knownWPBug(4539);
</del><span class="cx">                 $this-&gt;assertEquals('&amp;#8216;&lt;strong&gt;', wptexturize(&quot;'&lt;strong&gt;&quot;));
</span><span class="cx">                 $this-&gt;assertEquals('&amp;#8216;&lt;strong&gt;Quoted Text&lt;/strong&gt;&amp;#8217;,', wptexturize(&quot;'&lt;strong&gt;Quoted Text&lt;/strong&gt;',&quot;));
</span><span class="cx">                 $this-&gt;assertEquals('&amp;#8220;&lt;strong&gt;Quoted Text&lt;/strong&gt;&amp;#8221;,', wptexturize('&quot;&lt;strong&gt;Quoted Text&lt;/strong&gt;&quot;,'));
</span><span class="lines">@@ -579,24 +591,30 @@
</span><span class="cx">                 $this-&gt;assertEquals('&amp;#8216;a 9&amp;#8243; b&amp;#8217;', wptexturize(&quot;'a 9\&quot; b'&quot;));
</span><span class="cx">         }
</span><span class="cx"> 
</span><ins>+        /**
+         * @ticket 8775
+         */
</ins><span class="cx">         function test_wptexturize_quotes_around_numbers() {
</span><del>-                $this-&gt;knownWPBug(8775);
</del><span class="cx">                 $this-&gt;assertEquals('&amp;#8220;12345&amp;#8221;', wptexturize('&quot;12345&quot;'));
</span><span class="cx">                 $this-&gt;assertEquals('&amp;#8216;12345&amp;#8217;', wptexturize('\'12345\''));
</span><span class="cx">                 $this-&gt;assertEquals('&amp;#8220;a 9&amp;#8242; plus a &amp;#8216;9&amp;#8217;, maybe a 9&amp;#8242; &amp;#8216;9&amp;#8217; &amp;#8221;', wptexturize('&quot;a 9\' plus a \'9\', maybe a 9\' \'9\' &quot;'));
</span><span class="cx">                 $this-&gt;assertEquals('&lt;p&gt;&amp;#8216;99&lt;br /&gt;&amp;#8216;123&amp;#8217;&lt;br /&gt;&amp;#8217;tis&lt;br /&gt;&amp;#8216;s&amp;#8217;&lt;/p&gt;', wptexturize('&lt;p&gt;\'99&lt;br /&gt;\'123\'&lt;br /&gt;\'tis&lt;br /&gt;\'s\'&lt;/p&gt;'));
</span><span class="cx">         }
</span><span class="cx"> 
</span><ins>+        /**
+         * @ticket 8912
+         */
</ins><span class="cx">         function test_wptexturize_html_comments() {
</span><del>-                $this-&gt;knownWPBug(8912);
</del><span class="cx">                 $this-&gt;assertEquals('&lt;!--[if !IE]&gt;--&gt;&lt;!--&lt;![endif]--&gt;', wptexturize('&lt;!--[if !IE]&gt;--&gt;&lt;!--&lt;![endif]--&gt;'));
</span><span class="cx">                 $this-&gt;assertEquals('&lt;!--[if !IE]&gt;&quot;a 9\' plus a \'9\', maybe a 9\' \'9\' &quot;&lt;![endif]--&gt;', wptexturize('&lt;!--[if !IE]&gt;&quot;a 9\' plus a \'9\', maybe a 9\' \'9\' &quot;&lt;![endif]--&gt;'));
</span><span class="cx">                 $this-&gt;assertEquals('&lt;ul&gt;&lt;li&gt;Hello.&lt;/li&gt;&lt;!--&lt;li&gt;Goodbye.&lt;/li&gt;--&gt;&lt;/ul&gt;', wptexturize('&lt;ul&gt;&lt;li&gt;Hello.&lt;/li&gt;&lt;!--&lt;li&gt;Goodbye.&lt;/li&gt;--&gt;&lt;/ul&gt;'));
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        //WP Ticket #15241 and #4539
</del><ins>+        /**
+         * @ticket 4539
+         * @ticket 15241
+         */
</ins><span class="cx">         function test_entity_quote_cuddling() {
</span><del>-                $this-&gt;knownWPBug(4539);
</del><span class="cx">                 $this-&gt;assertEquals('&amp;nbsp;&amp;#8220;Testing&amp;#8221;', wptexturize('&amp;nbsp;&quot;Testing&quot;'));
</span><span class="cx">                 $this-&gt;assertEquals('&amp;#38;&amp;#8220;Testing&amp;#8221;', wptexturize('&amp;#38;&quot;Testing&quot;'));
</span><span class="cx">         }
</span><span class="lines">@@ -656,8 +674,10 @@
</span><span class="cx">                 $this-&gt;assertEquals( 'feed:http://wordpress.org/feed/', esc_url( 'feed:http://wordpress.org/feed/' ) );
</span><span class="cx">         }
</span><span class="cx"> 
</span><ins>+        /**
+         * @ticket 16859
+         */
</ins><span class="cx">         function test_square_brackets() {
</span><del>-                $this-&gt;knownWPBug( 16859 );
</del><span class="cx">                 $this-&gt;assertEquals( 'http://example.com/?foo%5Bbar%5D=baz', esc_url( 'http://example.com/?foo[bar]=baz' ) );
</span><span class="cx">                 $this-&gt;assertEquals( 'http://example.com/?baz=bar&amp;#038;foo%5Bbar%5D=baz', esc_url( 'http://example.com/?baz=bar&amp;foo[bar]=baz' ) );
</span><span class="cx">                 //IPv6 addresses in urls - RFC2732
</span><span class="lines">@@ -731,11 +751,10 @@
</span><span class="cx"> 
</span><span class="cx">         /**
</span><span class="cx">          * wpautop() Should not alter the contents of &quot;&lt;pre&gt;&quot; elements
</span><del>-         * @link http://core.trac.wordpress.org/ticket/19855
-         * @return void
</del><ins>+         *
+         * @ticket 19855
</ins><span class="cx">          */        
</span><span class="cx">         public function test_skip_pre_elements() {
</span><del>-                $this-&gt;knownWPBug( 19855 );
</del><span class="cx">                 $code = file_get_contents( DIR_TESTDATA . '/formatting/sizzle.js' );
</span><span class="cx">                 $code = str_replace( &quot;\r&quot;, '', $code );
</span><span class="cx">                 $code = htmlentities( $code );
</span><span class="lines">@@ -759,11 +778,10 @@
</span><span class="cx">         
</span><span class="cx">         /**
</span><span class="cx">          * wpautop() Should not add &lt;br/&gt; to &quot;&lt;input&gt;&quot; elements
</span><del>-         * @link http://core.trac.wordpress.org/ticket/16456
-         * @return void
</del><ins>+         *
+         * @ticket 16456
</ins><span class="cx">          */        
</span><span class="cx">         public function test_skip_input_elements() {
</span><del>-                $this-&gt;knownWPBug( 16456 );
</del><span class="cx">                 $str = 'Username: &lt;input type=&quot;text&quot; id=&quot;username&quot; name=&quot;username&quot; /&gt;&lt;br /&gt;Password: &lt;input type=&quot;password&quot; id=&quot;password1&quot; name=&quot;password1&quot; /&gt;';
</span><span class="cx">                 $this-&gt;assertEquals( &quot;&lt;p&gt;$str&lt;/p&gt;&quot;, trim( wpautop( $str ) ) );
</span><span class="cx">         }
</span><span class="lines">@@ -773,8 +791,10 @@
</span><span class="cx">  * @group formatting
</span><span class="cx">  */
</span><span class="cx"> class TestLikeEscape extends WP_UnitTestCase {
</span><ins>+        /**
+         * @ticket 10041
+         */
</ins><span class="cx">         function test_like_escape() {
</span><del>-                $this-&gt;knownWPBug(10041);
</del><span class="cx"> 
</span><span class="cx">                 $inputs = array(
</span><span class="cx">                         'howdy%', //Single Percent
</span><span class="lines">@@ -1031,8 +1051,10 @@
</span><span class="cx">                 $expected = is_multisite() ? 'captain awesome' : 'Captain Awesome';
</span><span class="cx">                 $this-&gt;assertEquals($expected, sanitize_user($input));
</span><span class="cx">         }
</span><ins>+        /**
+         * @ticket 10823
+         */
</ins><span class="cx">         function test_strips_entities() {
</span><del>-                $this-&gt;knownWPBug( 10823 );
</del><span class="cx">                 $this-&gt;assertEquals(&quot;ATT&quot;, sanitize_user(&quot;AT&amp;amp;T&quot;));
</span><span class="cx">                 $this-&gt;assertEquals(&quot;ATT Test;&quot;, sanitize_user(&quot;AT&amp;amp;T Test;&quot;));
</span><span class="cx">                 $this-&gt;assertEquals(&quot;AT&amp;T Test;&quot;, sanitize_user(&quot;AT&amp;T Test;&quot;));
</span><span class="lines">@@ -1128,8 +1150,10 @@
</span><span class="cx">                 $this-&gt;assertEquals(&quot;penn-teller-bull&quot;, sanitize_title_with_dashes(&quot;penn &amp; teller bull&quot;));
</span><span class="cx">         }
</span><span class="cx"> 
</span><ins>+        /**
+         * @ticket 10823
+         */
</ins><span class="cx">         function test_strips_entities() {
</span><del>-                $this-&gt;knownWPBug( 10823 );
</del><span class="cx">                 $this-&gt;assertEquals(&quot;no-entities-here&quot;, sanitize_title_with_dashes(&quot;No &amp;nbsp; Entities &amp;ndash; Here &amp;amp;&quot;));
</span><span class="cx">                 $this-&gt;assertEquals(&quot;one-two&quot;, sanitize_title_with_dashes(&quot;One &amp;amp; Two&quot;, '', 'save'));
</span><span class="cx">                 $this-&gt;assertEquals(&quot;one-two&quot;, sanitize_title_with_dashes(&quot;One &amp;#123; Two;&quot;, '', 'save'));
</span><span class="lines">@@ -1174,13 +1198,17 @@
</span><span class="cx">                 $this-&gt;assertEquals(&quot;just-a-slug&quot;, sanitize_title_with_dashes(&quot;Just ™ a Slug&quot;, '', 'save'));
</span><span class="cx">         }
</span><span class="cx"> 
</span><ins>+        /**
+         * @ticket 19820
+         */
</ins><span class="cx">         function test_replaces_multiply_sign() {
</span><del>-                $this-&gt;knownWPBug(19820);
</del><span class="cx">                 $this-&gt;assertEquals(&quot;6x7-is-42&quot;, sanitize_title_with_dashes(&quot;6×7 is 42&quot;, '', 'save'));
</span><span class="cx">         }
</span><span class="cx"> 
</span><ins>+        /**
+         * @ticket 20772
+         */
</ins><span class="cx">         function test_replaces_standalone_diacritic() {
</span><del>-                $this-&gt;knownWPBug(20772);
</del><span class="cx">                 $this-&gt;assertEquals(&quot;aaaa&quot;, sanitize_title_with_dashes(&quot;āáǎà&quot;, '', 'save'));
</span><span class="cx">         }
</span><span class="cx"> 
</span><span class="lines">@@ -1196,8 +1224,10 @@
</span><span class="cx">                 $this-&gt;assertEquals($output, convert_chars($input));
</span><span class="cx">         }
</span><span class="cx"> 
</span><ins>+        /**
+         * @ticket 20503
+         */
</ins><span class="cx">         function test_replaces_latin_letter_z_with_caron() {
</span><del>-                $this-&gt;knownWPBug(20503);
</del><span class="cx">                 $input = &quot;&amp;#142;&amp;#158;&quot;;
</span><span class="cx">                 $output = &quot;&amp;#381;&amp;#382;&quot;;
</span><span class="cx">                 $this-&gt;assertEquals( $output, convert_chars( $input ) );
</span><span class="lines">@@ -1444,9 +1474,10 @@
</span><span class="cx">                 $this-&gt;assertEquals( 'abcdefghijkl', remove_accents( 'abcdefghijkl' ) );
</span><span class="cx">         }
</span><span class="cx"> 
</span><ins>+        /**
+         * @ticket 9591
+         */
</ins><span class="cx">         public function test_remove_accents_latin1_supplement() {
</span><del>-                $this-&gt;knownWPBug(9591);
-
</del><span class="cx">                 $input = 'ªºÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ';
</span><span class="cx">                 $output = 'aoAAAAAAAECEEEEIIIIDNOOOOOOUUUUYTHsaaaaaaaeceeeeiiiidnoooooouuuuythy';
</span><span class="cx"> 
</span><span class="lines">@@ -1479,9 +1510,10 @@
</span><span class="cx">                 $this-&gt;assertEquals( $output, remove_accents( $input ), 'remove_accents from ISO-8859-1 text' );
</span><span class="cx">         }
</span><span class="cx"> 
</span><ins>+        /**
+         * @ticket 17738
+         */
</ins><span class="cx">         public function test_remove_accents_vowels_diacritic() {
</span><del>-                $this-&gt;knownWPBug(17738);
-
</del><span class="cx">                 // Vowels with diacritic
</span><span class="cx">                 // unmarked
</span><span class="cx">                 $this-&gt;assertEquals( 'OoUu', remove_accents( 'ƠơƯư' ) );
</span><span class="lines">@@ -1497,9 +1529,10 @@
</span><span class="cx">                 $this-&gt;assertEquals( 'AaAaAaEeEeIiOoOoOoUuUuYy', remove_accents( 'ẠạẬậẶặẸẹỆệỊịỌọỘộỢợỤụỰựỴỵ' ) );
</span><span class="cx">         }
</span><span class="cx"> 
</span><ins>+        /**
+         * @ticket 20772
+         */
</ins><span class="cx">         public function test_remove_accents_hanyu_pinyin() {
</span><del>-                $this-&gt;knownWPBug(20772);
-
</del><span class="cx">                 // Vowels with diacritic (Chinese, Hanyu Pinyin)
</span><span class="cx">                 // macron
</span><span class="cx">                 $this-&gt;assertEquals( 'aeiouuAEIOUU', remove_accents( 'āēīōūǖĀĒĪŌŪǕ' ) );
</span><span class="lines">@@ -1518,8 +1551,10 @@
</span><span class="cx">  * @group formatting
</span><span class="cx">  */
</span><span class="cx"> class TestStripSlashesDeep extends WP_UnitTestCase {
</span><ins>+        /**
+         * @ticket 18026
+         */
</ins><span class="cx">         function test_preserves_original_datatype() {
</span><del>-                $this-&gt;knownWPBug(18026);
</del><span class="cx"> 
</span><span class="cx">                 $this-&gt;assertEquals( true, stripslashes_deep( true ) );
</span><span class="cx">                 $this-&gt;assertEquals( false, stripslashes_deep( false ) );
</span></span></pre></div>
<a id="trunkteststest_includes_functionsphp"></a>
<div class="modfile"><h4>Modified: trunk/tests/test_includes_functions.php (893 => 894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/tests/test_includes_functions.php        2012-07-09 14:38:23 UTC (rev 893)
+++ trunk/tests/test_includes_functions.php        2012-07-09 15:32:24 UTC (rev 894)
</span><span class="lines">@@ -212,8 +212,10 @@
</span><span class="cx">                 }
</span><span class="cx">         }
</span><span class="cx"> 
</span><ins>+        /**
+         * @ticket 9930
+         */
</ins><span class="cx">         function test_is_serialized() {
</span><del>-                $this-&gt;knownWPBug(9930);
</del><span class="cx">                 $cases = array(
</span><span class="cx">                         serialize(null),
</span><span class="cx">                         serialize(true),
</span></span></pre></div>
<a id="trunkteststest_includes_ksesphp"></a>
<div class="modfile"><h4>Modified: trunk/tests/test_includes_kses.php (893 => 894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/tests/test_includes_kses.php        2012-07-09 14:38:23 UTC (rev 893)
+++ trunk/tests/test_includes_kses.php        2012-07-09 15:32:24 UTC (rev 894)
</span><span class="lines">@@ -6,11 +6,13 @@
</span><span class="cx">  * @group kses
</span><span class="cx">  */
</span><span class="cx"> class Test_wp_filter_post_kses extends WP_UnitTestCase {
</span><ins>+
+        /**
+         * @ticket 20210
+         */
</ins><span class="cx">         function test_wp_filter_post_kses_address() {
</span><span class="cx">                 global $allowedposttags;
</span><span class="cx"> 
</span><del>-                $this-&gt;knownWPBug( 20210 );
-
</del><span class="cx">                 $attributes = array(
</span><span class="cx">                         'class' =&gt; 'classname',
</span><span class="cx">                         'id' =&gt; 'id',
</span><span class="lines">@@ -24,11 +26,12 @@
</span><span class="cx">                 }
</span><span class="cx">         }
</span><span class="cx"> 
</span><ins>+        /**
+         * @ticket 20210
+         */
</ins><span class="cx">         function test_wp_filter_post_kses_a() {
</span><span class="cx">                 global $allowedposttags;
</span><span class="cx"> 
</span><del>-                $this-&gt;knownWPBug( 20210 );
-
</del><span class="cx">                 $attributes = array(
</span><span class="cx">                         'class' =&gt; 'classname',
</span><span class="cx">                         'id' =&gt; 'id',
</span><span class="lines">@@ -47,11 +50,12 @@
</span><span class="cx">                 }
</span><span class="cx">         }
</span><span class="cx"> 
</span><ins>+        /**
+         * @ticket 20210
+         */
</ins><span class="cx">         function test_wp_filter_post_kses_abbr() {
</span><span class="cx">                 global $allowedposttags;
</span><span class="cx"> 
</span><del>-                $this-&gt;knownWPBug( 20210 );
-
</del><span class="cx">                 $attributes = array(
</span><span class="cx">                         'class' =&gt; 'classname',
</span><span class="cx">                         'id' =&gt; 'id',
</span></span></pre></div>
<a id="trunkteststest_includes_pluggablephp"></a>
<div class="modfile"><h4>Modified: trunk/tests/test_includes_pluggable.php (893 => 894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/tests/test_includes_pluggable.php        2012-07-09 14:38:23 UTC (rev 893)
+++ trunk/tests/test_includes_pluggable.php        2012-07-09 15:32:24 UTC (rev 894)
</span><span class="lines">@@ -46,11 +46,11 @@
</span><span class="cx"> /**
</span><span class="cx">  * @group pluggable
</span><span class="cx">  * @group mail
</span><ins>+ * @ticket UT47
</ins><span class="cx">  */
</span><span class="cx"> class TestMailFunctions extends WP_UnitTestCase {
</span><span class="cx">         function setUp() {
</span><span class="cx">                 parent::setUp();
</span><del>-                $this-&gt;knownUTBug( 47 );
</del><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         function test_wp_mail_custom_boundaries() {
</span><span class="lines">@@ -112,8 +112,10 @@
</span><span class="cx">                 unset( $_SERVER['SERVER_NAME'] );
</span><span class="cx">         }
</span><span class="cx"> 
</span><ins>+        /**
+         * @ticket 15448
+         */
</ins><span class="cx">         function test_wp_mail_plain_and_html() {
</span><del>-                $this-&gt;knownWPBug(15448);
</del><span class="cx"> 
</span><span class="cx">                 $to = 'user@example.com';
</span><span class="cx">                 $subject = 'Test email with plain text and html versions';
</span><span class="lines">@@ -148,8 +150,10 @@
</span><span class="cx">                 unset( $_SERVER['SERVER_NAME'] );
</span><span class="cx">         }
</span><span class="cx"> 
</span><ins>+        /**
+         * @ticket 17305
+         */
</ins><span class="cx">         function test_wp_mail_rfc2822_addresses() {
</span><del>-                $this-&gt;knownWPBug(17305);
</del><span class="cx"> 
</span><span class="cx">                 $to = &quot;Name &lt;address@tld.com&gt;&quot;;
</span><span class="cx">                 $from = &quot;Another Name &lt;another_address@different-tld.com&gt;&quot;;
</span><span class="lines">@@ -184,8 +188,10 @@
</span><span class="cx">                 unset( $_SERVER['SERVER_NAME'] );
</span><span class="cx">         }
</span><span class="cx"> 
</span><ins>+        /**
+         * @ticket 17305
+         */
</ins><span class="cx">         function test_wp_mail_multiple_rfc2822_to_addresses() {
</span><del>-                $this-&gt;knownWPBug(17305);
</del><span class="cx"> 
</span><span class="cx">                 $to = &quot;Name &lt;address@tld.com&gt;, Another Name &lt;another_address@different-tld.com&gt;&quot;;
</span><span class="cx">                 $subject = &quot;RFC2822 Testing&quot;;
</span><span class="lines">@@ -226,8 +232,10 @@
</span><span class="cx">                 unset( $_SERVER['SERVER_NAME'] );
</span><span class="cx">         }
</span><span class="cx"> 
</span><ins>+        /**
+         * @ticket 18463
+         */
</ins><span class="cx">         function test_wp_mail_to_address_no_name() {
</span><del>-                $this-&gt;knownWPBug( 18463 );
</del><span class="cx"> 
</span><span class="cx">                 $to = &quot;&lt;address@tld.com&gt;&quot;;
</span><span class="cx">                 $subject = &quot;RFC2822 Testing&quot;;
</span><span class="lines">@@ -267,7 +275,9 @@
</span><span class="cx">  * @group user
</span><span class="cx">  */
</span><span class="cx"> class TestUserFunction extends WP_UnitTestCase {
</span><del>-        // #13317
</del><ins>+        /**
+         * @ticket 13317
+         */
</ins><span class="cx">         function test_get_userdata() {
</span><span class="cx">                 $id = $this-&gt;factory-&gt;user-&gt;create( array( 'role' =&gt; 'administrator' ) );
</span><span class="cx">                 $this-&gt;assertFalse( get_userdata( 0 ) );
</span></span></pre></div>
<a id="trunkteststest_includes_postphp"></a>
<div class="modfile"><h4>Modified: trunk/tests/test_includes_post.php (893 => 894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/tests/test_includes_post.php        2012-07-09 14:38:23 UTC (rev 893)
+++ trunk/tests/test_includes_post.php        2012-07-09 15:32:24 UTC (rev 894)
</span><span class="lines">@@ -381,12 +381,11 @@
</span><span class="cx">                 $this-&gt;assertEquals(false, $this-&gt;_next_schedule_for_post('publish_future_post', $id));
</span><span class="cx">         }
</span><span class="cx"> 
</span><ins>+        /**
+         * @ticket 5364
+         */
</ins><span class="cx">         function test_delete_future_post_cron() {
</span><del>-                // http://trac.wordpress.org/ticket/5364
</del><span class="cx">                 // &quot;When I delete a future post using wp_delete_post($post-&gt;ID) it does not update the cron correctly.&quot;
</span><del>-
-                #$this-&gt;knownWPBug(5364);
-
</del><span class="cx">                 $future_date = strtotime('+1 day');
</span><span class="cx"> 
</span><span class="cx">                 $post = array(
</span><span class="lines">@@ -409,7 +408,7 @@
</span><span class="cx">                 $this-&gt;assertFalse($this-&gt;_next_schedule_for_post('publish_future_post', $id));
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        function test_permlink_without_title() {
</del><ins>+        function test_permalink_without_title() {
</ins><span class="cx">                 // bug: permalink doesn't work if post title is empty
</span><span class="cx">                 // wpcom #663, also http://trac.wordpress.org/ticket/5305
</span><span class="cx"> 
</span><span class="lines">@@ -435,12 +434,10 @@
</span><span class="cx">                 $wp_rewrite-&gt;set_permalink_structure('');
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        function test_attachment_url() {
-        }
-
</del><ins>+        /**
+         * @ticket 21013
+         */
</ins><span class="cx">         function test_wp_unique_post_slug_with_non_latin_slugs() {
</span><del>-                $this-&gt;knownWPBug(21013);
-
</del><span class="cx">                 $inputs = array(
</span><span class="cx">                         'Αρνάκι άσπρο και παχύ της μάνας του καμάρι, και άλλα τραγούδια',
</span><span class="cx">                         'Предлагаем супер металлообрабатывающее оборудование',
</span><span class="lines">@@ -895,9 +892,10 @@
</span><span class="cx">                 $this-&gt;assertEquals( $data, $meta-&gt;meta_value );
</span><span class="cx">         }
</span><span class="cx"> 
</span><ins>+        /**
+         * @ticket 12860
+         */
</ins><span class="cx">         function test_funky_post_meta() {
</span><del>-                $this-&gt;knownWPBug(12860);
-
</del><span class="cx">                 $classy = new StdClass();
</span><span class="cx">                 $classy-&gt;ID = 1;
</span><span class="cx">                 $classy-&gt;stringy = &quot;I love slashes\\\\&quot;;
</span><span class="lines">@@ -921,14 +919,6 @@
</span><span class="cx">  * @group post
</span><span class="cx">  */
</span><span class="cx"> class WPTestPostTypes extends WP_UnitTestCase {
</span><del>-        function setUp() {
-                parent::setUp();
-        }
-
-        function tearDown() {
-                parent::tearDown();
-        }
-
</del><span class="cx">         function test_register_post_type() {
</span><span class="cx">                 $this-&gt;assertNull( get_post_type_object( 'foo' ) );
</span><span class="cx">                 register_post_type( 'foo' );
</span></span></pre></div>
<a id="trunkteststest_includes_taxonomyphp"></a>
<div class="modfile"><h4>Modified: trunk/tests/test_includes_taxonomy.php (893 => 894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/tests/test_includes_taxonomy.php        2012-07-09 14:38:23 UTC (rev 893)
+++ trunk/tests/test_includes_taxonomy.php        2012-07-09 15:32:24 UTC (rev 894)
</span><span class="lines">@@ -12,9 +12,11 @@
</span><span class="cx">                 $this-&gt;assertEquals(array('link_category'), get_object_taxonomies('link'));
</span><span class="cx">         }
</span><span class="cx"> 
</span><ins>+        /**
+         * @ticket 5417
+         */
</ins><span class="cx">         function test_get_unknown_taxonomies() {
</span><span class="cx">                 // taxonomies for an unknown object type
</span><del>-                $this-&gt;knownWPBug(5417);
</del><span class="cx">                 $this-&gt;assertEquals( array(), get_object_taxonomies(rand_str()) );
</span><span class="cx">                 $this-&gt;assertEquals( array(), get_object_taxonomies('') );
</span><span class="cx">                 $this-&gt;assertEquals( array(), get_object_taxonomies(0) );
</span><span class="lines">@@ -155,9 +157,11 @@
</span><span class="cx">                 $this-&gt;assertEquals( 0, term_exists(NULL) );
</span><span class="cx">         }
</span><span class="cx"> 
</span><ins>+        /**
+         * @ticket 5381
+         */
</ins><span class="cx">         function test_is_term_type() {
</span><span class="cx">                 // insert a term
</span><del>-                $this-&gt;knownWPBug(5381);
</del><span class="cx">                 $term = rand_str();
</span><span class="cx">                 $t = wp_insert_term( $term, $this-&gt;taxonomy );
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkteststest_includes_themephp"></a>
<div class="modfile"><h4>Modified: trunk/tests/test_includes_theme.php (893 => 894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/tests/test_includes_theme.php        2012-07-09 14:38:23 UTC (rev 893)
+++ trunk/tests/test_includes_theme.php        2012-07-09 15:32:24 UTC (rev 894)
</span><span class="lines">@@ -132,8 +132,10 @@
</span><span class="cx">                 }
</span><span class="cx">         }
</span><span class="cx"> 
</span><ins>+        /**
+         * @ticket 20897
+         */
</ins><span class="cx">         function test_extra_theme_headers() {
</span><del>-                $this-&gt;knownWPBug( 20897 );
</del><span class="cx">                 $wp_theme = wp_get_theme( $this-&gt;theme_slug );
</span><span class="cx">                 $this-&gt;assertNotEmpty( $wp_theme-&gt;get('License') );
</span><span class="cx">                 $path_to_style_css = $wp_theme-&gt;get_theme_root() . '/' . $wp_theme-&gt;get_stylesheet() . '/style.css';
</span><span class="lines">@@ -497,9 +499,10 @@
</span><span class="cx">                 $this-&gt;assertLessThanOrEqual(100000, $length );
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        // #11214 looked at how we can reduce the in-memory size even more
</del><ins>+        /**
+         * @ticket 11214 looked at how we can reduce the in-memory size even more
+         */
</ins><span class="cx">         function test_smaller_storage() {
</span><del>-                $this-&gt;knownWPBug(11214);
</del><span class="cx">                 $themes = get_themes();
</span><span class="cx">                 $this-&gt;_filter_out_themes_not_in_root( $themes );
</span><span class="cx">                 $theme_names = array_keys($themes);
</span></span></pre></div>
<a id="trunkteststest_includes_wpscriptsphp"></a>
<div class="modfile"><h4>Modified: trunk/tests/test_includes_wp-scripts.php (893 => 894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/tests/test_includes_wp-scripts.php        2012-07-09 14:38:23 UTC (rev 893)
+++ trunk/tests/test_includes_wp-scripts.php        2012-07-09 15:32:24 UTC (rev 894)
</span><span class="lines">@@ -21,9 +21,11 @@
</span><span class="cx">                 parent::tearDown();
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        // Test versioning
</del><ins>+        /**
+         * Test versioning
+         * @ticket 11315
+         */
</ins><span class="cx">         function test_wp_enqueue_script() {
</span><del>-                $this-&gt;knownWPBug(11315);
</del><span class="cx">                 wp_enqueue_script('no-deps-no-version', 'example.com', array());
</span><span class="cx">                 wp_enqueue_script('empty-deps-no-version', 'example.com' );
</span><span class="cx">                 wp_enqueue_script('empty-deps-version', 'example.com', array(), 1.2);
</span><span class="lines">@@ -43,10 +45,9 @@
</span><span class="cx">         /**
</span><span class="cx">          * Test the different protocol references in wp_enqueue_script
</span><span class="cx">          * @global WP_Scripts $wp_scripts
</span><ins>+         * @ticket 16560 Protocol-relative references
</ins><span class="cx">          */
</span><span class="cx">         public function test_protocols() {
</span><del>-                $this-&gt;knownWPBug( 16560 );
-
</del><span class="cx">                 // Init
</span><span class="cx">                 global $wp_scripts;
</span><span class="cx">                 $base_url_backup = $wp_scripts-&gt;base_url;
</span></span></pre></div>
<a id="trunkteststest_includes_wpstylesphp"></a>
<div class="modfile"><h4>Modified: trunk/tests/test_includes_wp-styles.php (893 => 894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/tests/test_includes_wp-styles.php        2012-07-09 14:38:23 UTC (rev 893)
+++ trunk/tests/test_includes_wp-styles.php        2012-07-09 15:32:24 UTC (rev 894)
</span><span class="lines">@@ -20,7 +20,10 @@
</span><span class="cx">                 parent::tearDown();
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        // Test versioning #11315
</del><ins>+        /**
+         * Test versioning
+         * @ticket 11315
+         */
</ins><span class="cx">         function test_wp_enqueue_style() {
</span><span class="cx">                 wp_enqueue_style('no-deps-no-version', 'example.com' );
</span><span class="cx">                 wp_enqueue_style('no-deps-version', 'example.com', array(), 1.2);
</span><span class="lines">@@ -41,10 +44,9 @@
</span><span class="cx">         /**
</span><span class="cx">          * Test the different protocol references in wp_enqueue_style
</span><span class="cx">          * @global WP_Styles $wp_styles
</span><ins>+         * @ticket 16560 Protocol-relative references
</ins><span class="cx">          */
</span><span class="cx">         public function test_protocols() {
</span><del>-                $this-&gt;knownWPBug( 16560 );
-
</del><span class="cx">                 // Init
</span><span class="cx">                 global $wp_styles;
</span><span class="cx">                 $base_url_backup = $wp_styles-&gt;base_url;
</span></span></pre></div>
<a id="trunkteststest_msphp"></a>
<div class="modfile"><h4>Modified: trunk/tests/test_ms.php (893 => 894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/tests/test_ms.php        2012-07-09 14:38:23 UTC (rev 893)
+++ trunk/tests/test_ms.php        2012-07-09 15:32:24 UTC (rev 894)
</span><span class="lines">@@ -241,9 +241,10 @@
</span><span class="cx">                 $this-&gt;assertEquals( $user-&gt;user_email, $reg_blog[ count( $reg_blog )-1 ] );
</span><span class="cx">         }
</span><span class="cx"> 
</span><ins>+        /**
+         * @ticket 18119
+         */
</ins><span class="cx">         function test_upload_is_user_over_quota() {
</span><del>-                $this-&gt;knownWPBug( 18119 );
-
</del><span class="cx">                 $default_space_allowed = 50;
</span><span class="cx">                 $echo = false;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkteststest_post_filteringphp"></a>
<div class="modfile"><h4>Modified: trunk/tests/test_post_filtering.php (893 => 894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/tests/test_post_filtering.php        2012-07-09 14:38:23 UTC (rev 893)
+++ trunk/tests/test_post_filtering.php        2012-07-09 15:32:24 UTC (rev 894)
</span><span class="lines">@@ -70,10 +70,11 @@
</span><span class="cx">                 $this-&gt;assertEquals( $expected, $post-&gt;post_content );
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        // test kses bug. xhtml does not require space before closing
-        // empty element
</del><ins>+        /**
+         * test kses bug. xhtml does not require space before closing empty element
+         * @ticket 12394
+         */
</ins><span class="cx">         function test_post_content_xhtml_empty_elem() {
</span><del>-                $this-&gt;knownWPBug( 12394 );
</del><span class="cx">                 $content = &lt;&lt;&lt;EOF
</span><span class="cx"> &lt;img src='foo' width='500' height='300'/&gt;
</span><span class="cx"> EOF;
</span><span class="lines">@@ -88,10 +89,11 @@
</span><span class="cx">                 $this-&gt;assertEquals( $expected, $post-&gt;post_content );
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        // make sure unbalanced tags are fixed when they span a --more-- tag
</del><ins>+        /**
+         * make sure unbalanced tags are fixed when they span a --more-- tag
+         * @ticket 6297
+         */
</ins><span class="cx">         function test_post_content_unbalanced_more() {
</span><del>-                $this-&gt;knownWPBug(6297);
-
</del><span class="cx">                 $content = &lt;&lt;&lt;EOF
</span><span class="cx"> &lt;em&gt;some text&lt;!--more--&gt;
</span><span class="cx"> that's continued after the jump&lt;/em&gt;
</span><span class="lines">@@ -108,10 +110,11 @@
</span><span class="cx">                 $this-&gt;assertEquals( $expected, $post-&gt;post_content );
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        // make sure unbalanced tags are fixed when they span a --nextpage-- tag
</del><ins>+        /**
+         * make sure unbalanced tags are fixed when they span a --nextpage-- tag
+         * @ticket 6297
+         */
</ins><span class="cx">         function test_post_content_unbalanced_nextpage() {
</span><del>-                $this-&gt;knownWPBug(6297);
-
</del><span class="cx">                 $content = &lt;&lt;&lt;EOF
</span><span class="cx"> &lt;em&gt;some text&lt;!--nextpage--&gt;
</span><span class="cx"> that's continued after the jump&lt;/em&gt;
</span><span class="lines">@@ -128,10 +131,11 @@
</span><span class="cx">                 $this-&gt;assertEquals( $expected, $post-&gt;post_content );
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        // make sure unbalanced tags are fixed when they span both --more-- and --nextpage-- tags (in that order)
</del><ins>+        /**
+         * make sure unbalanced tags are fixed when they span both --more-- and --nextpage-- tags (in that order)
+         * @ticket 6297
+         */
</ins><span class="cx">         function test_post_content_unbalanced_more_nextpage() {
</span><del>-                $this-&gt;knownWPBug(6297);
-
</del><span class="cx">                 $content = &lt;&lt;&lt;EOF
</span><span class="cx"> &lt;em&gt;some text&lt;!--more--&gt;
</span><span class="cx"> that's continued after the jump&lt;/em&gt;
</span><span class="lines">@@ -156,10 +160,11 @@
</span><span class="cx">                 $this-&gt;assertEquals( $expected, $post-&gt;post_content );
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        // make sure unbalanced tags are fixed when they span both --nextpage-- and --more-- tags (in that order)
</del><ins>+        /**
+         * make sure unbalanced tags are fixed when they span both --nextpage-- and --more-- tags (in that order)
+         * @ticket 6297
+         */
</ins><span class="cx">         function test_post_content_unbalanced_nextpage_more() {
</span><del>-                $this-&gt;knownWPBug(6297);
-
</del><span class="cx">                 $content = &lt;&lt;&lt;EOF
</span><span class="cx"> &lt;em&gt;some text&lt;!--nextpage--&gt;
</span><span class="cx"> that's continued after the jump&lt;/em&gt;
</span></span></pre></div>
<a id="trunkteststest_queryphp"></a>
<div class="modfile"><h4>Modified: trunk/tests/test_query.php (893 => 894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/tests/test_query.php        2012-07-09 14:38:23 UTC (rev 893)
+++ trunk/tests/test_query.php        2012-07-09 15:32:24 UTC (rev 894)
</span><span class="lines">@@ -357,8 +357,10 @@
</span><span class="cx">                 $this-&gt;assertQueryTrue('is_search');
</span><span class="cx">         }
</span><span class="cx"> 
</span><ins>+        /**
+         * @ticket 13961
+         */
</ins><span class="cx">         function test_search_encoded_chars() {
</span><del>-                $this-&gt;knownWPBug(13961);
</del><span class="cx">                 $this-&gt;go_to('/search/F%C3%BCnf%2Bbar/');
</span><span class="cx">                 $this-&gt;assertEquals( get_query_var( 's' ), 'Fünf+bar' );
</span><span class="cx">         }
</span></span></pre></div>
<a id="trunkteststest_query_resultsphp"></a>
<div class="modfile"><h4>Modified: trunk/tests/test_query_results.php (893 => 894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/tests/test_query_results.php        2012-07-09 14:38:23 UTC (rev 893)
+++ trunk/tests/test_query_results.php        2012-07-09 15:32:24 UTC (rev 894)
</span><span class="lines">@@ -258,9 +258,10 @@
</span><span class="cx">                 $this-&gt;assertEquals( $expected, wp_list_pluck( $posts, 'post_name' ) );
</span><span class="cx">         }
</span><span class="cx"> 
</span><ins>+        /**
+         * @ticket 18897
+         */
</ins><span class="cx">         function test_query_offset_and_paged() {
</span><del>-                $this-&gt;knownWPBug(18897);
-
</del><span class="cx">                 $posts = $this-&gt;q-&gt;query('paged=2&amp;offset=3');
</span><span class="cx"> 
</span><span class="cx">                 $expected = array (
</span></span></pre></div>
<a id="trunkteststest_uploadsphp"></a>
<div class="modfile"><h4>Modified: trunk/tests/test_uploads.php (893 => 894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/tests/test_uploads.php        2012-07-09 14:38:23 UTC (rev 893)
+++ trunk/tests/test_uploads.php        2012-07-09 15:32:24 UTC (rev 894)
</span><span class="lines">@@ -11,7 +11,7 @@
</span><span class="cx"> 
</span><span class="cx">         function setUp() {
</span><span class="cx">                 if ( is_multisite() )
</span><del>-                        $this-&gt;knownUTBug(35);
</del><ins>+                        $this-&gt;knownUTBug( 35 );
</ins><span class="cx"> 
</span><span class="cx">                 parent::setUp();
</span><span class="cx">                 return;
</span><span class="lines">@@ -50,8 +50,10 @@
</span><span class="cx">                 $this-&gt;assertEquals( '', $info['error'] );
</span><span class="cx">         }
</span><span class="cx"> 
</span><ins>+        /**
+         * @ticket 5953
+         */
</ins><span class="cx">         function test_upload_dir_absolute() {
</span><del>-                $this-&gt;knownWPBug(5953);
</del><span class="cx">                 // wp_upload_dir() with an absolute upload path
</span><span class="cx">                 update_option( 'upload_path', '/tmp' );
</span><span class="cx">                 // doesn't make sense to use an absolute file path without setting the url path
</span></span></pre></div>
<a id="trunkteststest_userphp"></a>
<div class="modfile"><h4>Modified: trunk/tests/test_user.php (893 => 894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/tests/test_user.php        2012-07-09 14:38:23 UTC (rev 893)
+++ trunk/tests/test_user.php        2012-07-09 15:32:24 UTC (rev 894)
</span><span class="lines">@@ -162,11 +162,10 @@
</span><span class="cx">         
</span><span class="cx">         /**
</span><span class="cx">          * Test the magic __unset method
</span><del>-         * @return void
</del><ins>+         *
+         * @ticket 20043
</ins><span class="cx">          */
</span><span class="cx">         public function test_user_unset() {
</span><del>-                $this-&gt;knownWPBug( 20043 );
-                
</del><span class="cx">                 // New user
</span><span class="cx">                 $user_id = $this-&gt;factory-&gt;user-&gt;create( array( 'role' =&gt; 'author' ) );
</span><span class="cx">                 $user = new WP_User( $user_id );
</span><span class="lines">@@ -335,10 +334,10 @@
</span><span class="cx">                         $this-&gt;assertEquals( $value, $user-&gt;get( $key ), $key );
</span><span class="cx">         }
</span><span class="cx"> 
</span><ins>+        /**
+         * @ticket 19500 Usermeta cache is not cleared after user deletion
+         */
</ins><span class="cx">         function test_get_blogs_of_user() {
</span><del>-                // Usermeta cache is not cleared after user deletion.
-                $this-&gt;knownWPBug(19500);
-
</del><span class="cx">                 // Logged out users don't have blogs.
</span><span class="cx">                 $this-&gt;assertEquals( array(), get_blogs_of_user( 0 ) );
</span><span class="cx"> 
</span><span class="lines">@@ -354,10 +353,10 @@
</span><span class="cx">                 $this-&gt;assertEquals( array(), get_blogs_of_user( $user_id ) );
</span><span class="cx">         }
</span><span class="cx"> 
</span><ins>+        /**
+         * @ticket 19500 Usermeta cache is not cleared after user deletion
+         */
</ins><span class="cx">         function test_is_user_member_of_blog() {
</span><del>-                // Usermeta cache is not cleared after user deletion.
-                $this-&gt;knownWPBug(19500);
-
</del><span class="cx">                 $old_current = get_current_user_id();
</span><span class="cx"> 
</span><span class="cx">                 $user_id = $this-&gt;factory-&gt;user-&gt;create( array( 'role' =&gt; 'subscriber' ) );
</span></span></pre></div>
<a id="trunkteststest_user_capabilitiesphp"></a>
<div class="modfile"><h4>Modified: trunk/tests/test_user_capabilities.php (893 => 894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/tests/test_user_capabilities.php        2012-07-09 14:38:23 UTC (rev 893)
+++ trunk/tests/test_user_capabilities.php        2012-07-09 15:32:24 UTC (rev 894)
</span><span class="lines">@@ -538,46 +538,4 @@
</span><span class="cx">                 $this-&gt;assertFalse($author_2-&gt;has_cap('delete_page', $page));
</span><span class="cx">                 $this-&gt;assertFalse($contributor-&gt;has_cap('delete_page', $page));
</span><span class="cx">         }
</span><del>-
-        function test_usermeta_caps() {
-
-                $this-&gt;knownWPBug(5541);
-
-                // make sure an old style usermeta capabilities entry is still recognized by the new code
-
-                $id = $this-&gt;factory-&gt;user-&gt;create( array( 'role' =&gt; 'author' ) );
-                $user = new WP_User($id);
-                $this-&gt;assertTrue($user-&gt;exists(), &quot;Problem getting user $id&quot;);
-
-                global $wpdb;
-                if (!empty($wpdb-&gt;user_role))
-                        $wpdb-&gt;query(&quot;DELETE FROM {$wpdb-&gt;user_role} WHERE user_id = {$id}&quot;);
-
-                update_usermeta($id, $user-&gt;cap_key, array('editor' =&gt; true));
-
-                $user = new WP_User($id);
-                $this-&gt;assertTrue($user-&gt;exists(), &quot;Problem getting user $id&quot;);
-
-                // check a few of the main capabilities
-                $this-&gt;assertEquals(array('editor'), $user-&gt;roles);
-                $this-&gt;assertTrue($user-&gt;has_cap('moderate_comments'));
-                $this-&gt;assertTrue($user-&gt;has_cap('manage_categories'));
-                $this-&gt;assertTrue($user-&gt;has_cap('upload_files'));
-                $this-&gt;assertTrue($user-&gt;has_cap('level_7'));
-
-                // and a few capabilities this user doesn't have
-                $this-&gt;assertFalse($user-&gt;has_cap('switch_themes'));
-                $this-&gt;assertFalse($user-&gt;has_cap('edit_users'));
-                $this-&gt;assertFalse($user-&gt;has_cap('level_8'));
-        }
-
-        function _test_generate_role_thingy() {
-                global $wp_roles;
-                foreach (array_keys($wp_roles-&gt;roles) as $role) {
-                        $obj = $wp_roles-&gt;role_objects[$role];
-
-                        echo &quot;\nadd_role('{$role}', '{$obj-&gt;name}', &quot;.var_export($obj-&gt;capabilities, true).&quot;\n&quot;;
-                        echo &quot;)\n&quot;;
-                }
-        }
</del><span class="cx"> }
</span></span></pre>
</div>
</div>

</body>
</html>