<!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->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->knownWPBug( $ticket );
</del><ins>+                                $this->knownWPBug( $ticket, $message );
</ins><span class="cx">                         } elseif ( 'UT' == substr( $ticket, 0, 2 ) ) {
</span><del>-                                $this->knownUTBug( substr( $ticket, 2 ) );
</del><ins>+                                $this->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 && ! TracTickets::isTracTicketClosed( 'http://core.trac.wordpress.org', $ticket_id ) ) {
</span><del>-                        $this->markTestSkipped( sprintf( 'WordPress Ticket #%d is not fixed', $ticket_id ) );
</del><ins>+                        $this->markTestSkipped( sprintf( 'WordPress Ticket #%d is not fixed', $ticket_id ) . "\n" . $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 && ! TracTickets::isTracTicketClosed( 'http://unit-tests.trac.wordpress.org', $ticket_id ) ) {
</span><del>-                        $this->markTestSkipped( sprintf( 'Unit Tests Ticket #%d is not fixed', $ticket_id ) );
</del><ins>+                        $this->markTestSkipped( sprintf( 'Unit Tests Ticket #%d is not fixed', $ticket_id ) . "\n" . $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 && ! TracTickets::isTracTicketClosed( 'http://plugins.trac.wordpress.org', $ticket_id ) ) {
</span><del>-                        $this->markTestSkipped( sprintf( 'WordPress Plugin Ticket #%d is not fixed', $ticket_id ) );
</del><ins>+                        $this->markTestSkipped( sprintf( 'WordPress Plugin Ticket #%d is not fixed', $ticket_id ) . "\n" . $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->assertEquals( 401, $result->code );
</span><span class="cx">         }
</span><span class="cx">
</span><ins>+        /**
+         * @ticket 20336
+         */
</ins><span class="cx">         function test_invalid_postid() {
</span><del>-                $this->knownWPBug(20336);
-
</del><span class="cx">                 $result = $this->myxmlrpcserver->mw_getPost( array( 9999, 'author', 'author' ) );
</span><span class="cx">                 $this->assertInstanceOf( 'IXR_Error', $result );
</span><span class="cx">                 $this->assertEquals( 404, $result->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->assertEquals( 401, $result->code );
</span><span class="cx">         }
</span><span class="cx">
</span><ins>+        /**
+         * @ticket 20356
+         */
</ins><span class="cx">         function test_invalid_author() {
</span><del>-                $this->knownWPBug( 20356 );
</del><span class="cx">                 $this->make_user_by_role( 'editor' );
</span><span class="cx">
</span><span class="cx">                 $post = array( 'title' => 'Test', 'wp_author_id' => 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->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->knownWPBug( 20201 );
-
</del><span class="cx">                 $this->make_user_by_role( 'subscriber' );
</span><span class="cx">
</span><span class="cx">                 $result = $this->myxmlrpcserver->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->assertEquals( 403, $result->code );
</span><span class="cx">         }
</span><span class="cx">
</span><ins>+        /**
+         * @ticket 20336
+         */
</ins><span class="cx">         function test_invalid_pageid() {
</span><del>-                $this->knownWPBug(20336);
-
</del><span class="cx">                 $this->make_user_by_role( 'editor' );
</span><span class="cx">
</span><span class="cx">                 $result = $this->myxmlrpcserver->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->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->myxmlrpcserver->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->assertEquals( 403, $result->code );
</span><span class="cx">         }
</span><span class="cx">
</span><ins>+        /**
+         * @ticket 20991
+         */
</ins><span class="cx">         function test_incapable_user() {
</span><del>-                $this->knownWPBug( 20991 );
-
</del><span class="cx">                 $this->make_user_by_role( 'subscriber' );
</span><span class="cx">
</span><span class="cx">                 $result = $this->myxmlrpcserver->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->assertFalse( empty($args[0][0]->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->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->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->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->knownWPBug(10959);
-                $this->knownWPBug(11216);
</del><span class="cx">                 $theme = get_theme('Page Template Theme');
</span><span class="cx">                 $this->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->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->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->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->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->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 "0,700" 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->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->assertEquals(array($tag), $a->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->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->assertFalse( empty($args[0][0]->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->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->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->knownWPBug(16855);
</del><span class="cx">                 // 5 > 0 & 301
</span><span class="cx">                 $res = wp_remote_request($this->redirection_script . '?code=301&rt=' . 5, array('redirection' => 0) );
</span><span class="cx">                 $this->assertFalse( is_wp_error($res) );
</span><span class="cx">                 $this->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->knownWPBug(16855);
</del><span class="cx">                 // 5 > 0 & 302
</span><span class="cx">                 $res = wp_remote_request($this->redirection_script . '?code=302&rt=' . 5, array('redirection' => 0) );
</span><span class="cx">                 $this->assertFalse( is_wp_error($res) );
</span><span class="lines">@@ -88,8 +92,10 @@
</span><span class="cx">                 $this->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->knownWPBug(16855);
</del><span class="cx">                 // Redirections on HEAD request when Requested
</span><span class="cx">                 $res = wp_remote_request($this->redirection_script . '?rt=' . 5, array('redirection' => 5, 'method' => 'HEAD') );
</span><span class="cx">                 $this->assertFalse( is_wp_error($res) );
</span><span class="lines">@@ -114,25 +120,34 @@
</span><span class="cx">                 $this->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->knownWPBug(16855);
</del><span class="cx">                 // 0 redirections asked for, Should return the document?
</span><span class="cx">                 $res = wp_remote_request($this->redirection_script . '?code=302&rt=' . 5, array('redirection' => 0) );
</span><span class="cx">                 $this->assertFalse( is_wp_error($res) );
</span><span class="cx">                 $this->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->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->redirection_script . '?200-location=true' ); // Prints PASS on initial load, FAIL if the client follows the specified redirection
-                //$this->assertEquals( 'PASS', $res['body']);
</del><ins>+                // Prints PASS on initial load, FAIL if the client follows the specified redirection
+                $res = wp_remote_request( $this->redirection_script . '?200-location=true' );
+                $this->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->knownWPBug(11888);
</del><span class="cx">                 // Test that the headers sent are recieved by the server
</span><span class="cx">                 $headers = array('test1' => 'test', 'test2' => 0, 'test3' => '');
</span><span class="cx">                 $res = wp_remote_request( $this->redirection_script . '?header-check', array('headers' => $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->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->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->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->assertEquals( "<$tag />", balanceTags( "<$tag>", 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->knownWPBug( 1597 );
</del><span class="cx">
</span><span class="cx">                 foreach ( $this->single_tags as $tag ) {
</span><span class="cx">                         $this->assertEquals( "<$tag />", balanceTags( "<$tag>", 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->knownWPBug( 1597 );
</del><span class="cx">
</span><span class="cx">                 foreach ( $this->single_tags as $tag ) {
</span><span class="cx">                         $this->assertEquals( "<$tag />", balanceTags( "<$tag></$tag>", 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->knownWPBug( 1597 );
</del><span class="cx">
</span><span class="cx">                 $inputs = array(
</span><span class="cx">                         '<strong/>',
</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->knownWPBug( 20401 );
</del><span class="cx">
</span><span class="cx">                 $object = '<object id="obj1"><param name="param1"/><object id="obj2"><param name="param2"/></object></object>';
</span><span class="cx">                 $this->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->knownWPBug($ticket);
</del><ins>+                        $this->knownWPBug( $ticket );
</ins><span class="cx">
</span><span class="cx">                 $ticket_ref = ($ticket > 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->knownWPBug(20488);
</del><span class="cx">                 if ( defined( 'DISALLOW_FILE_MODS' ) || defined( 'DISALLOW_FILE_EDIT' ) )
</span><span class="cx">                         $this->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->assertEquals( 'subdir/theme2', $theme->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->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->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->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->knownUTBug(32);
</del><span class="cx">                 $this->go_to('/feed/');
</span><span class="cx">                 $feed = $this->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->knownWPBug( 16892 );
</del><span class="cx">                 $urls_before = array(
</span><span class="cx">                         '<span>http://example.com</span>',
</span><span class="cx">                         '<p>http://example.com/</p>',
</span><span class="lines">@@ -326,8 +328,10 @@
</span><span class="cx">                         $this->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->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&foo[bar]=baz',
</span><span class="lines">@@ -504,7 +508,10 @@
</span><span class="cx">                 $this->assertEquals(' &#8220;test&#8217;s quoted&#8221; ', wptexturize(' "test\'s quoted" '));
</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->assertEquals(
</span><span class="cx">                         'That means every moment you&#8217;re working on something without it being in the public it&#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->knownWPBug(4539);
</del><span class="cx">                 $this->assertEquals('&#8220;Quoted String&#8221;', wptexturize('"Quoted String"'));
</span><span class="cx">                 $this->assertEquals('Here is &#8220;<a href="http://example.com">a test with a link</a>&#8221;', wptexturize('Here is "<a href="http://example.com">a test with a link</a>"'));
</span><span class="cx">                 $this->assertEquals('Here is &#8220;<a href="http://example.com">a test with a link and a period</a>&#8221;.', wptexturize('Here is "<a href="http://example.com">a test with a link and a period</a>".'));
</span><span class="lines">@@ -530,9 +538,10 @@
</span><span class="cx">                 $this->assertEquals('A test with a number, &#8220;like 62&#8221;, is nice to have.', wptexturize('A test with a number, "like 62", 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->knownWPBug(4539);
</del><span class="cx">                 $this->assertEquals('test&#8217;s', wptexturize("test's"));
</span><span class="cx">                 $this->assertEquals('&#8216;test&#8217;s', wptexturize("'test's"));
</span><span class="cx">                 $this->assertEquals('&#8216;test&#8217;s&#8217;', wptexturize("'test's'"));
</span><span class="lines">@@ -540,9 +549,10 @@
</span><span class="cx">                 $this->assertEquals('&#8216;string&#8217;s&#8217;', wptexturize("'string's'"));
</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->knownWPBug(4539);
</del><span class="cx">                 $this->assertEquals('Class of &#8217;99', wptexturize("Class of '99"));
</span><span class="cx">                 $this->assertEquals('Class of &#8217;99&#8217;s', wptexturize("Class of '99's"));
</span><span class="cx">                 $this->assertEquals('&#8216;Class of &#8217;99&#8217;', wptexturize("'Class of '99'"));
</span><span class="lines">@@ -556,9 +566,11 @@
</span><span class="cx">                 $this->assertEquals('Class of &#8217;99', wptexturize("Class of '99"));
</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->knownWPBug(4539);
</del><span class="cx">                 $this->assertEquals('&#8216;<strong>', wptexturize("'<strong>"));
</span><span class="cx">                 $this->assertEquals('&#8216;<strong>Quoted Text</strong>&#8217;,', wptexturize("'<strong>Quoted Text</strong>',"));
</span><span class="cx">                 $this->assertEquals('&#8220;<strong>Quoted Text</strong>&#8221;,', wptexturize('"<strong>Quoted Text</strong>",'));
</span><span class="lines">@@ -579,24 +591,30 @@
</span><span class="cx">                 $this->assertEquals('&#8216;a 9&#8243; b&#8217;', wptexturize("'a 9\" b'"));
</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->knownWPBug(8775);
</del><span class="cx">                 $this->assertEquals('&#8220;12345&#8221;', wptexturize('"12345"'));
</span><span class="cx">                 $this->assertEquals('&#8216;12345&#8217;', wptexturize('\'12345\''));
</span><span class="cx">                 $this->assertEquals('&#8220;a 9&#8242; plus a &#8216;9&#8217;, maybe a 9&#8242; &#8216;9&#8217; &#8221;', wptexturize('"a 9\' plus a \'9\', maybe a 9\' \'9\' "'));
</span><span class="cx">                 $this->assertEquals('<p>&#8216;99<br />&#8216;123&#8217;<br />&#8217;tis<br />&#8216;s&#8217;</p>', wptexturize('<p>\'99<br />\'123\'<br />\'tis<br />\'s\'</p>'));
</span><span class="cx">         }
</span><span class="cx">
</span><ins>+        /**
+         * @ticket 8912
+         */
</ins><span class="cx">         function test_wptexturize_html_comments() {
</span><del>-                $this->knownWPBug(8912);
</del><span class="cx">                 $this->assertEquals('<!--[if !IE]>--><!--<![endif]-->', wptexturize('<!--[if !IE]>--><!--<![endif]-->'));
</span><span class="cx">                 $this->assertEquals('<!--[if !IE]>"a 9\' plus a \'9\', maybe a 9\' \'9\' "<![endif]-->', wptexturize('<!--[if !IE]>"a 9\' plus a \'9\', maybe a 9\' \'9\' "<![endif]-->'));
</span><span class="cx">                 $this->assertEquals('<ul><li>Hello.</li><!--<li>Goodbye.</li>--></ul>', wptexturize('<ul><li>Hello.</li><!--<li>Goodbye.</li>--></ul>'));
</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->knownWPBug(4539);
</del><span class="cx">                 $this->assertEquals('&nbsp;&#8220;Testing&#8221;', wptexturize('&nbsp;"Testing"'));
</span><span class="cx">                 $this->assertEquals('&#38;&#8220;Testing&#8221;', wptexturize('&#38;"Testing"'));
</span><span class="cx">         }
</span><span class="lines">@@ -656,8 +674,10 @@
</span><span class="cx">                 $this->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->knownWPBug( 16859 );
</del><span class="cx">                 $this->assertEquals( 'http://example.com/?foo%5Bbar%5D=baz', esc_url( 'http://example.com/?foo[bar]=baz' ) );
</span><span class="cx">                 $this->assertEquals( 'http://example.com/?baz=bar&#038;foo%5Bbar%5D=baz', esc_url( 'http://example.com/?baz=bar&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 "<pre>" 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->knownWPBug( 19855 );
</del><span class="cx">                 $code = file_get_contents( DIR_TESTDATA . '/formatting/sizzle.js' );
</span><span class="cx">                 $code = str_replace( "\r", '', $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 <br/> to "<input>" 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->knownWPBug( 16456 );
</del><span class="cx">                 $str = 'Username: <input type="text" id="username" name="username" /><br />Password: <input type="password" id="password1" name="password1" />';
</span><span class="cx">                 $this->assertEquals( "<p>$str</p>", 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->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->assertEquals($expected, sanitize_user($input));
</span><span class="cx">         }
</span><ins>+        /**
+         * @ticket 10823
+         */
</ins><span class="cx">         function test_strips_entities() {
</span><del>-                $this->knownWPBug( 10823 );
</del><span class="cx">                 $this->assertEquals("ATT", sanitize_user("AT&amp;T"));
</span><span class="cx">                 $this->assertEquals("ATT Test;", sanitize_user("AT&amp;T Test;"));
</span><span class="cx">                 $this->assertEquals("AT&T Test;", sanitize_user("AT&T Test;"));
</span><span class="lines">@@ -1128,8 +1150,10 @@
</span><span class="cx">                 $this->assertEquals("penn-teller-bull", sanitize_title_with_dashes("penn & teller bull"));
</span><span class="cx">         }
</span><span class="cx">
</span><ins>+        /**
+         * @ticket 10823
+         */
</ins><span class="cx">         function test_strips_entities() {
</span><del>-                $this->knownWPBug( 10823 );
</del><span class="cx">                 $this->assertEquals("no-entities-here", sanitize_title_with_dashes("No &nbsp; Entities &ndash; Here &amp;"));
</span><span class="cx">                 $this->assertEquals("one-two", sanitize_title_with_dashes("One &amp; Two", '', 'save'));
</span><span class="cx">                 $this->assertEquals("one-two", sanitize_title_with_dashes("One &#123; Two;", '', 'save'));
</span><span class="lines">@@ -1174,13 +1198,17 @@
</span><span class="cx">                 $this->assertEquals("just-a-slug", sanitize_title_with_dashes("Just ™ a Slug", '', '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->knownWPBug(19820);
</del><span class="cx">                 $this->assertEquals("6x7-is-42", sanitize_title_with_dashes("6×7 is 42", '', '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->knownWPBug(20772);
</del><span class="cx">                 $this->assertEquals("aaaa", sanitize_title_with_dashes("āáǎà", '', 'save'));
</span><span class="cx">         }
</span><span class="cx">
</span><span class="lines">@@ -1196,8 +1224,10 @@
</span><span class="cx">                 $this->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->knownWPBug(20503);
</del><span class="cx">                 $input = "&#142;&#158;";
</span><span class="cx">                 $output = "&#381;&#382;";
</span><span class="cx">                 $this->assertEquals( $output, convert_chars( $input ) );
</span><span class="lines">@@ -1444,9 +1474,10 @@
</span><span class="cx">                 $this->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->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->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->knownWPBug(17738);
-
</del><span class="cx">                 // Vowels with diacritic
</span><span class="cx">                 // unmarked
</span><span class="cx">                 $this->assertEquals( 'OoUu', remove_accents( 'ƠơƯư' ) );
</span><span class="lines">@@ -1497,9 +1529,10 @@
</span><span class="cx">                 $this->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->knownWPBug(20772);
-
</del><span class="cx">                 // Vowels with diacritic (Chinese, Hanyu Pinyin)
</span><span class="cx">                 // macron
</span><span class="cx">                 $this->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->knownWPBug(18026);
</del><span class="cx">
</span><span class="cx">                 $this->assertEquals( true, stripslashes_deep( true ) );
</span><span class="cx">                 $this->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->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->knownWPBug( 20210 );
-
</del><span class="cx">                 $attributes = array(
</span><span class="cx">                         'class' => 'classname',
</span><span class="cx">                         'id' => '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->knownWPBug( 20210 );
-
</del><span class="cx">                 $attributes = array(
</span><span class="cx">                         'class' => 'classname',
</span><span class="cx">                         'id' => '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->knownWPBug( 20210 );
-
</del><span class="cx">                 $attributes = array(
</span><span class="cx">                         'class' => 'classname',
</span><span class="cx">                         'id' => '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->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->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->knownWPBug(17305);
</del><span class="cx">
</span><span class="cx">                 $to = "Name <address@tld.com>";
</span><span class="cx">                 $from = "Another Name <another_address@different-tld.com>";
</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->knownWPBug(17305);
</del><span class="cx">
</span><span class="cx">                 $to = "Name <address@tld.com>, Another Name <another_address@different-tld.com>";
</span><span class="cx">                 $subject = "RFC2822 Testing";
</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->knownWPBug( 18463 );
</del><span class="cx">
</span><span class="cx">                 $to = "<address@tld.com>";
</span><span class="cx">                 $subject = "RFC2822 Testing";
</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->factory->user->create( array( 'role' => 'administrator' ) );
</span><span class="cx">                 $this->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->assertEquals(false, $this->_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">                 // "When I delete a future post using wp_delete_post($post->ID) it does not update the cron correctly."
</span><del>-
-                #$this->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->assertFalse($this->_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->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->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->assertEquals( $data, $meta->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->knownWPBug(12860);
-
</del><span class="cx">                 $classy = new StdClass();
</span><span class="cx">                 $classy->ID = 1;
</span><span class="cx">                 $classy->stringy = "I love slashes\\\\";
</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->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->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->knownWPBug(5417);
</del><span class="cx">                 $this->assertEquals( array(), get_object_taxonomies(rand_str()) );
</span><span class="cx">                 $this->assertEquals( array(), get_object_taxonomies('') );
</span><span class="cx">                 $this->assertEquals( array(), get_object_taxonomies(0) );
</span><span class="lines">@@ -155,9 +157,11 @@
</span><span class="cx">                 $this->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->knownWPBug(5381);
</del><span class="cx">                 $term = rand_str();
</span><span class="cx">                 $t = wp_insert_term( $term, $this->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->knownWPBug( 20897 );
</del><span class="cx">                 $wp_theme = wp_get_theme( $this->theme_slug );
</span><span class="cx">                 $this->assertNotEmpty( $wp_theme->get('License') );
</span><span class="cx">                 $path_to_style_css = $wp_theme->get_theme_root() . '/' . $wp_theme->get_stylesheet() . '/style.css';
</span><span class="lines">@@ -497,9 +499,10 @@
</span><span class="cx">                 $this->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->knownWPBug(11214);
</del><span class="cx">                 $themes = get_themes();
</span><span class="cx">                 $this->_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->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->knownWPBug( 16560 );
-
</del><span class="cx">                 // Init
</span><span class="cx">                 global $wp_scripts;
</span><span class="cx">                 $base_url_backup = $wp_scripts->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->knownWPBug( 16560 );
-
</del><span class="cx">                 // Init
</span><span class="cx">                 global $wp_styles;
</span><span class="cx">                 $base_url_backup = $wp_styles->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->assertEquals( $user->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->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->assertEquals( $expected, $post->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->knownWPBug( 12394 );
</del><span class="cx">                 $content = <<<EOF
</span><span class="cx"> <img src='foo' width='500' height='300'/>
</span><span class="cx"> EOF;
</span><span class="lines">@@ -88,10 +89,11 @@
</span><span class="cx">                 $this->assertEquals( $expected, $post->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->knownWPBug(6297);
-
</del><span class="cx">                 $content = <<<EOF
</span><span class="cx"> <em>some text<!--more-->
</span><span class="cx"> that's continued after the jump</em>
</span><span class="lines">@@ -108,10 +110,11 @@
</span><span class="cx">                 $this->assertEquals( $expected, $post->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->knownWPBug(6297);
-
</del><span class="cx">                 $content = <<<EOF
</span><span class="cx"> <em>some text<!--nextpage-->
</span><span class="cx"> that's continued after the jump</em>
</span><span class="lines">@@ -128,10 +131,11 @@
</span><span class="cx">                 $this->assertEquals( $expected, $post->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->knownWPBug(6297);
-
</del><span class="cx">                 $content = <<<EOF
</span><span class="cx"> <em>some text<!--more-->
</span><span class="cx"> that's continued after the jump</em>
</span><span class="lines">@@ -156,10 +160,11 @@
</span><span class="cx">                 $this->assertEquals( $expected, $post->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->knownWPBug(6297);
-
</del><span class="cx">                 $content = <<<EOF
</span><span class="cx"> <em>some text<!--nextpage-->
</span><span class="cx"> that's continued after the jump</em>
</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->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->knownWPBug(13961);
</del><span class="cx">                 $this->go_to('/search/F%C3%BCnf%2Bbar/');
</span><span class="cx">                 $this->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->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->knownWPBug(18897);
-
</del><span class="cx">                 $posts = $this->q->query('paged=2&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->knownUTBug(35);
</del><ins>+                        $this->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->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->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->knownWPBug( 20043 );
-                
</del><span class="cx">                 // New user
</span><span class="cx">                 $user_id = $this->factory->user->create( array( 'role' => 'author' ) );
</span><span class="cx">                 $user = new WP_User( $user_id );
</span><span class="lines">@@ -335,10 +334,10 @@
</span><span class="cx">                         $this->assertEquals( $value, $user->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->knownWPBug(19500);
-
</del><span class="cx">                 // Logged out users don't have blogs.
</span><span class="cx">                 $this->assertEquals( array(), get_blogs_of_user( 0 ) );
</span><span class="cx">
</span><span class="lines">@@ -354,10 +353,10 @@
</span><span class="cx">                 $this->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->knownWPBug(19500);
-
</del><span class="cx">                 $old_current = get_current_user_id();
</span><span class="cx">
</span><span class="cx">                 $user_id = $this->factory->user->create( array( 'role' => '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->assertFalse($author_2->has_cap('delete_page', $page));
</span><span class="cx">                 $this->assertFalse($contributor->has_cap('delete_page', $page));
</span><span class="cx">         }
</span><del>-
-        function test_usermeta_caps() {
-
-                $this->knownWPBug(5541);
-
-                // make sure an old style usermeta capabilities entry is still recognized by the new code
-
-                $id = $this->factory->user->create( array( 'role' => 'author' ) );
-                $user = new WP_User($id);
-                $this->assertTrue($user->exists(), "Problem getting user $id");
-
-                global $wpdb;
-                if (!empty($wpdb->user_role))
-                        $wpdb->query("DELETE FROM {$wpdb->user_role} WHERE user_id = {$id}");
-
-                update_usermeta($id, $user->cap_key, array('editor' => true));
-
-                $user = new WP_User($id);
-                $this->assertTrue($user->exists(), "Problem getting user $id");
-
-                // check a few of the main capabilities
-                $this->assertEquals(array('editor'), $user->roles);
-                $this->assertTrue($user->has_cap('moderate_comments'));
-                $this->assertTrue($user->has_cap('manage_categories'));
-                $this->assertTrue($user->has_cap('upload_files'));
-                $this->assertTrue($user->has_cap('level_7'));
-
-                // and a few capabilities this user doesn't have
-                $this->assertFalse($user->has_cap('switch_themes'));
-                $this->assertFalse($user->has_cap('edit_users'));
-                $this->assertFalse($user->has_cap('level_8'));
-        }
-
-        function _test_generate_role_thingy() {
-                global $wp_roles;
-                foreach (array_keys($wp_roles->roles) as $role) {
-                        $obj = $wp_roles->role_objects[$role];
-
-                        echo "\nadd_role('{$role}', '{$obj->name}', ".var_export($obj->capabilities, true)."\n";
-                        echo ")\n";
-                }
-        }
</del><span class="cx"> }
</span></span></pre>
</div>
</div>
</body>
</html>