<!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>[38398] trunk/tests/phpunit: Unit Tests: </title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta" style="font-size: 105%">
<dt style="float: left; width: 6em; font-weight: bold">Revision</dt> <dd><a style="font-weight: bold" href="https://core.trac.wordpress.org/changeset/38398">38398</a><script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"Review this Commit","action":{"@type":"ViewAction","url":"https://core.trac.wordpress.org/changeset/38398","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>wonderboymusic</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2016-08-27 08:35:16 +0000 (Sat, 27 Aug 2016)</dd>
</dl>

<pre style='padding-left: 1em; margin: 2em 0; border-left: 2px solid #ccc; line-height: 1.25; font-size: 105%; font-family: sans-serif'>Unit Tests: 

* Automatically delete objects that we were created during `wpSetUpBeforeClass` - posts, comments, terms (except 1), and user (except 1)
* The amount of leftover data between tests was breathtaking - use the new function: `_delete_all_data()`
* Commit database transactions for all `TestCase`s, not just those that implement `wpSetUpBeforeClass` and `wpTearDownAfterClass`
* The tests run 10-20 seconds faster now

See <a href="https://core.trac.wordpress.org/ticket/37699">#37699</a>.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunktestsphpunitincludesfunctionsphp">trunk/tests/phpunit/includes/functions.php</a></li>
<li><a href="#trunktestsphpunitincludestestcasecanonicalphp">trunk/tests/phpunit/includes/testcase-canonical.php</a></li>
<li><a href="#trunktestsphpunitincludestestcasephp">trunk/tests/phpunit/includes/testcase.php</a></li>
<li><a href="#trunktestsphpunittestsadminincludesCommentphp">trunk/tests/phpunit/tests/admin/includesComment.php</a></li>
<li><a href="#trunktestsphpunittestsadminincludesFilephp">trunk/tests/phpunit/tests/admin/includesFile.php</a></li>
<li><a href="#trunktestsphpunittestsadminincludesListTablephp">trunk/tests/phpunit/tests/admin/includesListTable.php</a></li>
<li><a href="#trunktestsphpunittestsadminincludesPostphp">trunk/tests/phpunit/tests/admin/includesPost.php</a></li>
<li><a href="#trunktestsphpunittestsadminbarphp">trunk/tests/phpunit/tests/adminbar.php</a></li>
<li><a href="#trunktestsphpunittestsajaxAutosavephp">trunk/tests/phpunit/tests/ajax/Autosave.php</a></li>
<li><a href="#trunktestsphpunittestsajaxDeleteCommentphp">trunk/tests/phpunit/tests/ajax/DeleteComment.php</a></li>
<li><a href="#trunktestsphpunittestsajaxGetCommentsphp">trunk/tests/phpunit/tests/ajax/GetComments.php</a></li>
<li><a href="#trunktestsphpunittestsajaxReplytoCommentphp">trunk/tests/phpunit/tests/ajax/ReplytoComment.php</a></li>
<li><a href="#trunktestsphpunittestsajaxTagSearchphp">trunk/tests/phpunit/tests/ajax/TagSearch.php</a></li>
<li><a href="#trunktestsphpunittestsauthphp">trunk/tests/phpunit/tests/auth.php</a></li>
<li><a href="#trunktestsphpunittestscanonicalcategoryphp">trunk/tests/phpunit/tests/canonical/category.php</a></li>
<li><a href="#trunktestsphpunittestscanonicalnoRewritephp">trunk/tests/phpunit/tests/canonical/noRewrite.php</a></li>
<li><a href="#trunktestsphpunittestscanonicalpageOnFrontphp">trunk/tests/phpunit/tests/canonical/pageOnFront.php</a></li>
<li><a href="#trunktestsphpunittestscanonicalphp">trunk/tests/phpunit/tests/canonical.php</a></li>
<li><a href="#trunktestsphpunittestscommentgetCommentAuthorEmailLinkphp">trunk/tests/phpunit/tests/comment/getCommentAuthorEmailLink.php</a></li>
<li><a href="#trunktestsphpunittestscommentgetCommentAuthorUrlLinkphp">trunk/tests/phpunit/tests/comment/getCommentAuthorUrlLink.php</a></li>
<li><a href="#trunktestsphpunittestscommentgetCommentLinkphp">trunk/tests/phpunit/tests/comment/getCommentLink.php</a></li>
<li><a href="#trunktestsphpunittestscommentqueryphp">trunk/tests/phpunit/tests/comment/query.php</a></li>
<li><a href="#trunktestsphpunittestscommentwpCommentphp">trunk/tests/phpunit/tests/comment/wpComment.php</a></li>
<li><a href="#trunktestsphpunittestscommentphp">trunk/tests/phpunit/tests/comment.php</a></li>
<li><a href="#trunktestsphpunittestscustomizesectionphp">trunk/tests/phpunit/tests/customize/section.php</a></li>
<li><a href="#trunktestsphpunittestsfeedatomphp">trunk/tests/phpunit/tests/feed/atom.php</a></li>
<li><a href="#trunktestsphpunittestsfeedrss2php">trunk/tests/phpunit/tests/feed/rss2.php</a></li>
<li><a href="#trunktestsphpunittestsfunctionsgetArchivesphp">trunk/tests/phpunit/tests/functions/getArchives.php</a></li>
<li><a href="#trunktestsphpunittestslinkwpGetCanonicalURLphp">trunk/tests/phpunit/tests/link/wpGetCanonicalURL.php</a></li>
<li><a href="#trunktestsphpunittestsmediaphp">trunk/tests/phpunit/tests/media.php</a></li>
<li><a href="#trunktestsphpunittestsmetaregisterMetaphp">trunk/tests/phpunit/tests/meta/registerMeta.php</a></li>
<li><a href="#trunktestsphpunittestsmetaslashesphp">trunk/tests/phpunit/tests/meta/slashes.php</a></li>
<li><a href="#trunktestsphpunittestspostrevisionsphp">trunk/tests/phpunit/tests/post/revisions.php</a></li>
<li><a href="#trunktestsphpunittestspostthumbnailsphp">trunk/tests/phpunit/tests/post/thumbnails.php</a></li>
<li><a href="#trunktestsphpunittestspostwpPostphp">trunk/tests/phpunit/tests/post/wpPost.php</a></li>
<li><a href="#trunktestsphpunittestspostphp">trunk/tests/phpunit/tests/post.php</a></li>
<li><a href="#trunktestsphpunittestsquerydatephp">trunk/tests/phpunit/tests/query/date.php</a></li>
<li><a href="#trunktestsphpunittestsquerypostStatusphp">trunk/tests/phpunit/tests/query/postStatus.php</a></li>
<li><a href="#trunktestsphpunittestsqueryresultsphp">trunk/tests/phpunit/tests/query/results.php</a></li>
<li><a href="#trunktestsphpunittestsquerystickiesphp">trunk/tests/phpunit/tests/query/stickies.php</a></li>
<li><a href="#trunktestsphpunittestsrewriteaddRewriteEndpointphp">trunk/tests/phpunit/tests/rewrite/addRewriteEndpoint.php</a></li>
<li><a href="#trunktestsphpunitteststermgetTheTermsphp">trunk/tests/phpunit/tests/term/getTheTerms.php</a></li>
<li><a href="#trunktestsphpunitteststermwpSetObjectTermsphp">trunk/tests/phpunit/tests/term/wpSetObjectTerms.php</a></li>
<li><a href="#trunktestsphpunitteststermwpTermphp">trunk/tests/phpunit/tests/term/wpTerm.php</a></li>
<li><a href="#trunktestsphpunitteststermphp">trunk/tests/phpunit/tests/term.php</a></li>
<li><a href="#trunktestsphpunittestsusercapabilitiesphp">trunk/tests/phpunit/tests/user/capabilities.php</a></li>
<li><a href="#trunktestsphpunittestsusercountUserPostsphp">trunk/tests/phpunit/tests/user/countUserPosts.php</a></li>
<li><a href="#trunktestsphpunittestsuserlistAuthorsphp">trunk/tests/phpunit/tests/user/listAuthors.php</a></li>
<li><a href="#trunktestsphpunittestsuserqueryphp">trunk/tests/phpunit/tests/user/query.php</a></li>
<li><a href="#trunktestsphpunittestsuserwpSetCurrentUserphp">trunk/tests/phpunit/tests/user/wpSetCurrentUser.php</a></li>
<li><a href="#trunktestsphpunittestsuserphp">trunk/tests/phpunit/tests/user.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunktestsphpunitincludesfunctionsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/includes/functions.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/includes/functions.php        2016-08-27 06:06:50 UTC (rev 38397)
+++ trunk/tests/phpunit/includes/functions.php  2016-08-27 08:35:16 UTC (rev 38398)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -48,14 +48,48 @@
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+function _delete_all_data() {
+       global $wpdb;
+
+       foreach ( array(
+               $wpdb->posts,
+               $wpdb->postmeta,
+               $wpdb->comments,
+               $wpdb->commentmeta,
+               $wpdb->term_relationships,
+               $wpdb->termmeta
+       ) as $table ) {
+               $wpdb->query( "DELETE FROM {$table}" );
+       }
+
+       foreach ( array(
+               $wpdb->terms,
+               $wpdb->term_taxonomy
+       ) as $table ) {
+               $wpdb->query( "DELETE FROM {$table} WHERE term_id != 1" );
+       }
+
+       $wpdb->query( "UPDATE {$wpdb->term_taxonomy} SET count = 0" );
+
+       $wpdb->query( "DELETE FROM {$wpdb->users} WHERE ID != 1" );
+       $wpdb->query( "DELETE FROM {$wpdb->usermeta} WHERE user_id != 1" );
+}
+
</ins><span class="cx" style="display: block; padding: 0 10px"> function _delete_all_posts() {
</span><span class="cx" style="display: block; padding: 0 10px">        global $wpdb;
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        $all_posts = $wpdb->get_col("SELECT ID from {$wpdb->posts}");
-       if ($all_posts) {
-               foreach ($all_posts as $id)
-                       wp_delete_post( $id, true );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $all_posts = $wpdb->get_results( "SELECT ID, post_type from {$wpdb->posts}", ARRAY_A );
+       if ( ! $all_posts ) {
+               return;
</ins><span class="cx" style="display: block; padding: 0 10px">         }
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+       foreach ( $all_posts as $data ) {
+               if ( 'attachment' === $data['post_type'] ) {
+                       wp_delete_attachment( $data['ID'], true );
+               } else {
+                       wp_delete_post( $data['ID'], true );
+               }
+       }
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px"> function _wp_die_handler( $message, $title = '', $args = array() ) {
</span></span></pre></div>
<a id="trunktestsphpunitincludestestcasecanonicalphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/includes/testcase-canonical.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/includes/testcase-canonical.php       2016-08-27 06:06:50 UTC (rev 38397)
+++ trunk/tests/phpunit/includes/testcase-canonical.php 2016-08-27 08:35:16 UTC (rev 38398)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -15,6 +15,14 @@
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public $structure = '/%year%/%monthnum%/%day%/%postname%/';
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+        public static function wpSetUpBeforeClass( $factory ) {
+               self::generate_shared_fixtures( $factory );
+       }
+
+       public static function wpTearDownAfterClass() {
+               self::delete_shared_fixtures();
+       }
+
</ins><span class="cx" style="display: block; padding: 0 10px">         public function setUp() {
</span><span class="cx" style="display: block; padding: 0 10px">                parent::setUp();
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -134,20 +142,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">         * @since 4.1.0
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public static function delete_shared_fixtures() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                self::delete_user( self::$author_id );
-
-               foreach ( self::$post_ids as $pid ) {
-                       wp_delete_post( $pid, true );
-               }
-
-               foreach ( self::$comment_ids as $cid ) {
-                       wp_delete_comment( $cid, true );
-               }
-
-               foreach ( self::$term_ids as $tid => $tax ) {
-                       wp_delete_term( $tid, $tax );
-               }
-
</del><span class="cx" style="display: block; padding: 0 10px">                 self::$author_id = null;
</span><span class="cx" style="display: block; padding: 0 10px">                self::$post_ids = array();
</span><span class="cx" style="display: block; padding: 0 10px">                self::$comment_ids = array();
</span></span></pre></div>
<a id="trunktestsphpunitincludestestcasephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/includes/testcase.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/includes/testcase.php 2016-08-27 06:06:50 UTC (rev 38397)
+++ trunk/tests/phpunit/includes/testcase.php   2016-08-27 08:35:16 UTC (rev 38398)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -61,6 +61,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                $c = self::get_called_class();
</span><span class="cx" style="display: block; padding: 0 10px">                if ( ! method_exists( $c, 'wpSetUpBeforeClass' ) ) {
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                        self::commit_transaction();
</ins><span class="cx" style="display: block; padding: 0 10px">                         return;
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -72,8 +73,12 @@
</span><span class="cx" style="display: block; padding: 0 10px">        public static function tearDownAfterClass() {
</span><span class="cx" style="display: block; padding: 0 10px">                parent::tearDownAfterClass();
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                _delete_all_data();
+               self::flush_cache();
+
</ins><span class="cx" style="display: block; padding: 0 10px">                 $c = self::get_called_class();
</span><span class="cx" style="display: block; padding: 0 10px">                if ( ! method_exists( $c, 'wpTearDownAfterClass' ) ) {
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                        self::commit_transaction();
</ins><span class="cx" style="display: block; padding: 0 10px">                         return;
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -158,7 +163,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        function clean_up_global_scope() {
</span><span class="cx" style="display: block; padding: 0 10px">                $_GET = array();
</span><span class="cx" style="display: block; padding: 0 10px">                $_POST = array();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->flush_cache();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         self::flush_cache();
</ins><span class="cx" style="display: block; padding: 0 10px">         }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        /**
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -243,7 +248,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        function flush_cache() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ static function flush_cache() {
</ins><span class="cx" style="display: block; padding: 0 10px">                 global $wp_object_cache;
</span><span class="cx" style="display: block; padding: 0 10px">                $wp_object_cache->group_ops = array();
</span><span class="cx" style="display: block; padding: 0 10px">                $wp_object_cache->stats = array();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -445,7 +450,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $_SERVER['REQUEST_URI'] = $req;
</span><span class="cx" style="display: block; padding: 0 10px">                unset($_SERVER['PATH_INFO']);
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $this->flush_cache();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         self::flush_cache();
</ins><span class="cx" style="display: block; padding: 0 10px">                 unset($GLOBALS['wp_query'], $GLOBALS['wp_the_query']);
</span><span class="cx" style="display: block; padding: 0 10px">                $GLOBALS['wp_the_query'] = new WP_Query();
</span><span class="cx" style="display: block; padding: 0 10px">                $GLOBALS['wp_query'] = $GLOBALS['wp_the_query'];
</span></span></pre></div>
<a id="trunktestsphpunittestsadminincludesCommentphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/admin/includesComment.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/admin/includesComment.php       2016-08-27 06:06:50 UTC (rev 38397)
+++ trunk/tests/phpunit/tests/admin/includesComment.php 2016-08-27 08:35:16 UTC (rev 38398)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -42,17 +42,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-         * Delete the post and comments for the tests.
-        */
-       public static function wpTearDownAfterClass() {
-               foreach ( self::$comment_ids as $comment_id ) {
-                       wp_delete_comment( $comment_id, true );
-               }
-
-               wp_delete_post( self::$post_id, true );
-       }
-
-       /**
</del><span class="cx" style="display: block; padding: 0 10px">          * Verify that both the comment date and author must match for a comment to exist.
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function test_must_match_date_and_author() {
</span></span></pre></div>
<a id="trunktestsphpunittestsadminincludesFilephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/admin/includesFile.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/admin/includesFile.php  2016-08-27 06:06:50 UTC (rev 38397)
+++ trunk/tests/phpunit/tests/admin/includesFile.php    2016-08-27 08:35:16 UTC (rev 38398)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -6,10 +6,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">  */
</span><span class="cx" style="display: block; padding: 0 10px"> class Tests_Admin_includesFile extends WP_UnitTestCase {
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        function setUp() {
-               parent::setUp();
-       }
-
</del><span class="cx" style="display: block; padding: 0 10px">         /**
</span><span class="cx" style="display: block; padding: 0 10px">         * @ticket 20449
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span></span></pre></div>
<a id="trunktestsphpunittestsadminincludesListTablephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/admin/includesListTable.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/admin/includesListTable.php     2016-08-27 06:06:50 UTC (rev 38397)
+++ trunk/tests/phpunit/tests/admin/includesListTable.php       2016-08-27 08:35:16 UTC (rev 38398)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -4,10 +4,10 @@
</span><span class="cx" style="display: block; padding: 0 10px">  * @group admin
</span><span class="cx" style="display: block; padding: 0 10px">  */
</span><span class="cx" style="display: block; padding: 0 10px"> class Tests_Admin_includesListTable extends WP_UnitTestCase {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        protected static $top;
-       protected static $children;
-       protected static $grandchildren;
-       protected static $post_ids;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ protected static $top = array();
+       protected static $children = array();
+       protected static $grandchildren = array();
+       protected static $post_ids = array();
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        function setUp() {
</span><span class="cx" style="display: block; padding: 0 10px">                parent::setUp();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -64,12 +64,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        public static function wpTearDownAfterClass() {
-               foreach ( self::$post_ids as $post_id ) {
-                       wp_delete_post( $post_id, true );
-               }
-       }
-
</del><span class="cx" style="display: block; padding: 0 10px">         /**
</span><span class="cx" style="display: block; padding: 0 10px">         * @ticket 15459
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span></span></pre></div>
<a id="trunktestsphpunittestsadminincludesPostphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/admin/includesPost.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/admin/includesPost.php  2016-08-27 06:06:50 UTC (rev 38397)
+++ trunk/tests/phpunit/tests/admin/includesPost.php    2016-08-27 08:35:16 UTC (rev 38398)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -22,14 +22,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                self::$post_id = $factory->post->create();
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        public static function wpTearDownAfterClass() {
-               foreach ( self::$user_ids as $id ) {
-                       self::delete_user( $id );
-               }
-
-               wp_delete_post( self::$post_id, true );
-       }
-
</del><span class="cx" style="display: block; padding: 0 10px">         function test__wp_translate_postdata_cap_checks_contributor() {
</span><span class="cx" style="display: block; padding: 0 10px">                wp_set_current_user( self::$contributor_id );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span></span></pre></div>
<a id="trunktestsphpunittestsadminbarphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/adminbar.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/adminbar.php    2016-08-27 06:06:50 UTC (rev 38397)
+++ trunk/tests/phpunit/tests/adminbar.php      2016-08-27 08:35:16 UTC (rev 38398)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -26,12 +26,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                self::$user_ids[] = self::$no_role_id = $factory->user->create( array( 'role' => '' ) );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        public static function wpTearDownAfterClass() {
-               foreach ( self::$user_ids as $id ) {
-                       self::delete_user( $id );
-               }
-       }
-
</del><span class="cx" style="display: block; padding: 0 10px">         /**
</span><span class="cx" style="display: block; padding: 0 10px">         * @ticket 21117
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span></span></pre></div>
<a id="trunktestsphpunittestsajaxAutosavephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/ajax/Autosave.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/ajax/Autosave.php       2016-08-27 06:06:50 UTC (rev 38397)
+++ trunk/tests/phpunit/tests/ajax/Autosave.php 2016-08-27 08:35:16 UTC (rev 38398)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -35,14 +35,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                self::$post = get_post( self::$post_id );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        public static function wpTearDownAfterClass() {
-               foreach ( self::$user_ids as $user_id ) {
-                       self::delete_user( $user_id );
-               }
-
-               wp_delete_post( self::$post_id, true );
-       }
-
</del><span class="cx" style="display: block; padding: 0 10px">         /**
</span><span class="cx" style="display: block; padding: 0 10px">         * Set up the test fixture
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span></span></pre></div>
<a id="trunktestsphpunittestsajaxDeleteCommentphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/ajax/DeleteComment.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/ajax/DeleteComment.php  2016-08-27 06:06:50 UTC (rev 38397)
+++ trunk/tests/phpunit/tests/ajax/DeleteComment.php    2016-08-27 08:35:16 UTC (rev 38398)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -34,14 +34,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                self::$comments = array_map( 'get_comment', $comment_ids );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        public static function wpTearDownAfterClass() {
-               wp_delete_post( self::$post_id, true );
-
-               foreach ( self::$comments as $c ) {
-                       wp_delete_comment( $c->ID, true );
-               }
-       }
-
</del><span class="cx" style="display: block; padding: 0 10px">         /**
</span><span class="cx" style="display: block; padding: 0 10px">         * Clear the POST actions in between requests
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span></span></pre></div>
<a id="trunktestsphpunittestsajaxGetCommentsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/ajax/GetComments.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/ajax/GetComments.php    2016-08-27 06:06:50 UTC (rev 38397)
+++ trunk/tests/phpunit/tests/ajax/GetComments.php      2016-08-27 08:35:16 UTC (rev 38398)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -35,15 +35,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                self::$no_comment_post = $factory->post->create_and_get();
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        public static function wpTearDownAfterClass() {
-               foreach ( self::$comment_ids as $comment_id ) {
-                       wp_delete_comment( $comment_id, true );
-               }
-
-               wp_delete_post( self::$comment_post->ID, true );
-               wp_delete_post( self::$no_comment_post->ID, true );
-       }
-
</del><span class="cx" style="display: block; padding: 0 10px">         /**
</span><span class="cx" style="display: block; padding: 0 10px">         * Get comments as a privilged user (administrator)
</span><span class="cx" style="display: block; padding: 0 10px">         * Expects test to pass
</span></span></pre></div>
<a id="trunktestsphpunittestsajaxReplytoCommentphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/ajax/ReplytoComment.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/ajax/ReplytoComment.php 2016-08-27 06:06:50 UTC (rev 38397)
+++ trunk/tests/phpunit/tests/ajax/ReplytoComment.php   2016-08-27 08:35:16 UTC (rev 38398)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -35,15 +35,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                self::$draft_post = $factory->post->create_and_get( array( 'post_status' => 'draft' ) );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        public static function wpTearDownAfterClass() {
-               foreach ( self::$comment_ids as $comment_id ) {
-                       wp_delete_comment( $comment_id, true );
-               }
-
-               wp_delete_post( self::$comment_post->ID, true );
-               wp_delete_post( self::$draft_post->ID, true );
-       }
-
</del><span class="cx" style="display: block; padding: 0 10px">         public function tearDown() {
</span><span class="cx" style="display: block; padding: 0 10px">                remove_filter( 'query', array( $this, '_block_comments' ) );
</span><span class="cx" style="display: block; padding: 0 10px">                parent::tearDown();
</span></span></pre></div>
<a id="trunktestsphpunittestsajaxTagSearchphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/ajax/TagSearch.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/ajax/TagSearch.php      2016-08-27 06:06:50 UTC (rev 38397)
+++ trunk/tests/phpunit/tests/ajax/TagSearch.php        2016-08-27 08:35:16 UTC (rev 38398)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -31,12 +31,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        public static function wpTearDownAfterClass() {
-               foreach ( self::$term_ids as $t ) {
-                       wp_delete_term( $t, 'post_tag' );
-               }
-       }
-
</del><span class="cx" style="display: block; padding: 0 10px">         /**
</span><span class="cx" style="display: block; padding: 0 10px">         * Test as an admin
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span></span></pre></div>
<a id="trunktestsphpunittestsauthphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/auth.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/auth.php        2016-08-27 06:06:50 UTC (rev 38397)
+++ trunk/tests/phpunit/tests/auth.php  2016-08-27 08:35:16 UTC (rev 38398)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -26,10 +26,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                self::$wp_hasher = new PasswordHash( 8, true );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        public static function wpTearDownAfterClass() {
-               self::delete_user( self::$user_id );
-       }
-
</del><span class="cx" style="display: block; padding: 0 10px">         function setUp() {
</span><span class="cx" style="display: block; padding: 0 10px">                parent::setUp();
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span></span></pre></div>
<a id="trunktestsphpunittestscanonicalcategoryphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/canonical/category.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/canonical/category.php  2016-08-27 06:06:50 UTC (rev 38397)
+++ trunk/tests/phpunit/tests/canonical/category.php    2016-08-27 08:35:16 UTC (rev 38398)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -22,16 +22,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                wp_set_post_categories( self::$posts[1], self::$cats[1] );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        public static function wpTearDownAfterClass() {
-               foreach ( self::$posts as $post_id ) {
-                       wp_delete_post( $post_id, true );
-               }
-
-               foreach ( self::$cats as $cat ) {
-                       wp_delete_term( $cat, 'category' );
-               }
-       }
-
</del><span class="cx" style="display: block; padding: 0 10px">         /**
</span><span class="cx" style="display: block; padding: 0 10px">         * @dataProvider data_canonical_category
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span></span></pre></div>
<a id="trunktestsphpunittestscanonicalnoRewritephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/canonical/noRewrite.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/canonical/noRewrite.php 2016-08-27 06:06:50 UTC (rev 38397)
+++ trunk/tests/phpunit/tests/canonical/noRewrite.php   2016-08-27 08:35:16 UTC (rev 38398)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -10,14 +10,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> class Tests_Canonical_NoRewrite extends WP_Canonical_UnitTestCase {
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        // These test cases are run against the test handler in WP_Canonical
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        public static function wpSetUpBeforeClass( $factory ) {
-               self::generate_shared_fixtures( $factory );
-       }
</del><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        public static function wpTearDownAfterClass() {
-               self::delete_shared_fixtures();
-       }
-
</del><span class="cx" style="display: block; padding: 0 10px">         public function setUp() {
</span><span class="cx" style="display: block; padding: 0 10px">                global $wp_rewrite;
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span></span></pre></div>
<a id="trunktestsphpunittestscanonicalpageOnFrontphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/canonical/pageOnFront.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/canonical/pageOnFront.php       2016-08-27 06:06:50 UTC (rev 38397)
+++ trunk/tests/phpunit/tests/canonical/pageOnFront.php 2016-08-27 08:35:16 UTC (rev 38398)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -6,14 +6,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">  * @group query
</span><span class="cx" style="display: block; padding: 0 10px">  */
</span><span class="cx" style="display: block; padding: 0 10px"> class Tests_Canonical_PageOnFront extends WP_Canonical_UnitTestCase {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        public static function wpSetUpBeforeClass( $factory ) {
-               self::generate_shared_fixtures( $factory );
-       }
</del><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        public static function wpTearDownAfterClass() {
-               self::delete_shared_fixtures();
-       }
-
</del><span class="cx" style="display: block; padding: 0 10px">         function setUp() {
</span><span class="cx" style="display: block; padding: 0 10px">                parent::setUp();
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span></span></pre></div>
<a id="trunktestsphpunittestscanonicalphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/canonical.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/canonical.php   2016-08-27 06:06:50 UTC (rev 38397)
+++ trunk/tests/phpunit/tests/canonical.php     2016-08-27 08:35:16 UTC (rev 38398)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -9,14 +9,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">  * @group query
</span><span class="cx" style="display: block; padding: 0 10px">  */
</span><span class="cx" style="display: block; padding: 0 10px"> class Tests_Canonical extends WP_Canonical_UnitTestCase {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        public static function wpSetUpBeforeClass( $factory ) {
-               self::generate_shared_fixtures( $factory );
-       }
</del><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        public static function wpTearDownAfterClass() {
-               self::delete_shared_fixtures();
-       }
-
</del><span class="cx" style="display: block; padding: 0 10px">         public function setUp() {
</span><span class="cx" style="display: block; padding: 0 10px">                parent::setUp();
</span><span class="cx" style="display: block; padding: 0 10px">                wp_set_current_user( self::$author_id );
</span></span></pre></div>
<a id="trunktestsphpunittestscommentgetCommentAuthorEmailLinkphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/comment/getCommentAuthorEmailLink.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/comment/getCommentAuthorEmailLink.php   2016-08-27 06:06:50 UTC (rev 38397)
+++ trunk/tests/phpunit/tests/comment/getCommentAuthorEmailLink.php     2016-08-27 08:35:16 UTC (rev 38398)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -28,10 +28,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                ) );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        public static function wpTearDownAfterClass() {
-               wp_delete_comment( self::$comment->comment_ID, true );
-       }
-
</del><span class="cx" style="display: block; padding: 0 10px">         public function test_global_comment_with_default_parameters() {
</span><span class="cx" style="display: block; padding: 0 10px">                $expected = '<a href="mailto:foo@example.org">foo@example.org</a>';
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span></span></pre></div>
<a id="trunktestsphpunittestscommentgetCommentAuthorUrlLinkphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/comment/getCommentAuthorUrlLink.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/comment/getCommentAuthorUrlLink.php     2016-08-27 06:06:50 UTC (rev 38397)
+++ trunk/tests/phpunit/tests/comment/getCommentAuthorUrlLink.php       2016-08-27 08:35:16 UTC (rev 38398)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -13,12 +13,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                self::$comments = array_map( 'get_comment', $comment_ids );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        public static function wpTearDownAfterClass() {
-               foreach ( self::$comments as $comment ) {
-                       wp_delete_comment( $comment, true );
-               }
-       }
-
</del><span class="cx" style="display: block; padding: 0 10px">         protected function parseCommentAuthorUrl( $comment, $linktext = '' ) {
</span><span class="cx" style="display: block; padding: 0 10px">                if ( empty( $linktext ) ) {
</span><span class="cx" style="display: block; padding: 0 10px">                        $linktext = rtrim( preg_replace( '#http://(www\.)?#', '', $comment->comment_author_url ), '/' );
</span></span></pre></div>
<a id="trunktestsphpunittestscommentgetCommentLinkphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/comment/getCommentLink.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/comment/getCommentLink.php      2016-08-27 06:06:50 UTC (rev 38397)
+++ trunk/tests/phpunit/tests/comment/getCommentLink.php        2016-08-27 08:35:16 UTC (rev 38398)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -44,14 +44,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        public static function wpTearDownAfterClass() {
-               foreach ( self::$comments as $c ) {
-                       wp_delete_comment( $c, true );
-               }
-
-               wp_delete_post( self::$p, true );
-       }
-
</del><span class="cx" style="display: block; padding: 0 10px">         /**
</span><span class="cx" style="display: block; padding: 0 10px">         * @ticket 34068
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span></span></pre></div>
<a id="trunktestsphpunittestscommentqueryphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/comment/query.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/comment/query.php       2016-08-27 06:06:50 UTC (rev 38397)
+++ trunk/tests/phpunit/tests/comment/query.php 2016-08-27 08:35:16 UTC (rev 38398)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -13,10 +13,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                self::$post_id = $factory->post->create();
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        public static function wpTearDownAfterClass() {
-               wp_delete_post( self::$post_id, true );
-       }
-
</del><span class="cx" style="display: block; padding: 0 10px">         function setUp() {
</span><span class="cx" style="display: block; padding: 0 10px">                parent::setUp();
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span></span></pre></div>
<a id="trunktestsphpunittestscommentwpCommentphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/comment/wpComment.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/comment/wpComment.php   2016-08-27 06:06:50 UTC (rev 38397)
+++ trunk/tests/phpunit/tests/comment/wpComment.php     2016-08-27 08:35:16 UTC (rev 38398)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -22,11 +22,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                self::$comment_id = self::factory()->comment->create();
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        public static function wpTearDownAfterClass() {
-               wp_delete_comment( 1, true );
-               wp_delete_comment( self::$comment_id, true );
-       }
-
</del><span class="cx" style="display: block; padding: 0 10px">         /**
</span><span class="cx" style="display: block; padding: 0 10px">         * @ticket 37738
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span></span></pre></div>
<a id="trunktestsphpunittestscommentphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/comment.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/comment.php     2016-08-27 06:06:50 UTC (rev 38397)
+++ trunk/tests/phpunit/tests/comment.php       2016-08-27 08:35:16 UTC (rev 38398)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -25,12 +25,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                ) );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        public static function wpTearDownAfterClass() {
-               wp_delete_post( self::$post_id, true );
-
-               self::delete_user( self::$user_id );
-       }
-
</del><span class="cx" style="display: block; padding: 0 10px">         function test_wp_update_comment() {
</span><span class="cx" style="display: block; padding: 0 10px">                $post = self::factory()->post->create_and_get( array( 'post_title' => 'some-post', 'post_type' => 'post' ) );
</span><span class="cx" style="display: block; padding: 0 10px">                $post2 = self::factory()->post->create_and_get( array( 'post_title' => 'some-post-2', 'post_type' => 'post' ) );
</span></span></pre></div>
<a id="trunktestsphpunittestscustomizesectionphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/customize/section.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/customize/section.php   2016-08-27 06:06:50 UTC (rev 38397)
+++ trunk/tests/phpunit/tests/customize/section.php     2016-08-27 08:35:16 UTC (rev 38398)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -13,12 +13,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                self::$user_ids[] = self::$admin_id = $factory->user->create( array( 'role' => 'administrator' ) );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        public static function wpTearDownAfterClass() {
-               foreach ( self::$user_ids as $id ) {
-                       self::delete_user( $id );
-               }
-       }
-
</del><span class="cx" style="display: block; padding: 0 10px">         /**
</span><span class="cx" style="display: block; padding: 0 10px">         * @var WP_Customize_Manager
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span></span></pre></div>
<a id="trunktestsphpunittestsfeedatomphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/feed/atom.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/feed/atom.php   2016-08-27 06:06:50 UTC (rev 38397)
+++ trunk/tests/phpunit/tests/feed/atom.php     2016-08-27 08:35:16 UTC (rev 38398)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -45,22 +45,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-         * Destroy the user we created and related posts.
-        */
-       public static function wpTearDownAfterClass() {
-               // Delete our user
-               self::delete_user( self::$user_id );
-
-               // Delete all of our posts
-               foreach ( self::$posts as $post ) {
-                       wp_delete_post( $post, true );
-               }
-
-               // Delete our taxonomy
-               wp_delete_category( self::$category->term_id );
-       }
-
-       /**
</del><span class="cx" style="display: block; padding: 0 10px">          * Setup.
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function setUp() {
</span></span></pre></div>
<a id="trunktestsphpunittestsfeedrss2php"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/feed/rss2.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/feed/rss2.php   2016-08-27 06:06:50 UTC (rev 38397)
+++ trunk/tests/phpunit/tests/feed/rss2.php     2016-08-27 08:35:16 UTC (rev 38398)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -44,22 +44,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-         * Destroy the user we created and related posts.
-        */
-       public static function wpTearDownAfterClass() {
-               // Delete our user
-               self::delete_user( self::$user_id );
-
-               // Delete all of our posts
-               foreach ( self::$posts as $post ) {
-                       wp_delete_post( $post, true );
-               }
-
-               // Delete our taxonomy
-               wp_delete_category( self::$category->term_id );
-       }
-
-       /**
</del><span class="cx" style="display: block; padding: 0 10px">          * Setup.
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="cx" style="display: block; padding: 0 10px">        public function setUp() {
</span></span></pre></div>
<a id="trunktestsphpunittestsfunctionsgetArchivesphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/functions/getArchives.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/functions/getArchives.php       2016-08-27 06:06:50 UTC (rev 38397)
+++ trunk/tests/phpunit/tests/functions/getArchives.php 2016-08-27 08:35:16 UTC (rev 38398)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -23,12 +23,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                self::$post_ids = $factory->post->create_many( 8, array( 'post_type' => 'post', 'post_author' => '1' ) );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        public static function wpTearDownAfterClass() {
-               foreach ( self::$post_ids as $post_id ) {
-                       wp_delete_post( $post_id, true );
-               }
-       }
-
</del><span class="cx" style="display: block; padding: 0 10px">         function test_wp_get_archives_default() {
</span><span class="cx" style="display: block; padding: 0 10px">                $expected['default'] = "<li><a href='" . $this->month_url . "'>" . date( 'F Y' ) . "</a></li>";
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertEquals( $expected['default'], trim( wp_get_archives( array( 'echo' => false ) ) ) );
</span></span></pre></div>
<a id="trunktestsphpunittestslinkwpGetCanonicalURLphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/link/wpGetCanonicalURL.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/link/wpGetCanonicalURL.php      2016-08-27 06:06:50 UTC (rev 38397)
+++ trunk/tests/phpunit/tests/link/wpGetCanonicalURL.php        2016-08-27 08:35:16 UTC (rev 38398)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -14,10 +14,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                ) );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        public static function wpTearDownAfterClass() {
-               wp_delete_post( self::$post_id, true );
-       }
-
</del><span class="cx" style="display: block; padding: 0 10px">         /**
</span><span class="cx" style="display: block; padding: 0 10px">         * Test for a non existing post.
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span></span></pre></div>
<a id="trunktestsphpunittestsmediaphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/media.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/media.php       2016-08-27 06:06:50 UTC (rev 38397)
+++ trunk/tests/phpunit/tests/media.php 2016-08-27 08:35:16 UTC (rev 38398)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -17,8 +17,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        public static function wpTearDownAfterClass() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                wp_delete_attachment( self::$large_id );
-
</del><span class="cx" style="display: block; padding: 0 10px">                 $GLOBALS['_wp_additional_image_sizes'] = self::$_sizes;
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span></span></pre></div>
<a id="trunktestsphpunittestsmetaregisterMetaphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/meta/registerMeta.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/meta/registerMeta.php   2016-08-27 06:06:50 UTC (rev 38397)
+++ trunk/tests/phpunit/tests/meta/registerMeta.php     2016-08-27 08:35:16 UTC (rev 38398)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -9,10 +9,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                self::$post_id = $factory->post->create();
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        public static function wpTearDownAfterClass() {
-               wp_delete_post( self::$post_id, true );
-       }
-
</del><span class="cx" style="display: block; padding: 0 10px">         public function _old_sanitize_meta_cb( $meta_value, $meta_key, $meta_type ) {
</span><span class="cx" style="display: block; padding: 0 10px">                return $meta_key . ' old sanitized';
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span></span></pre></div>
<a id="trunktestsphpunittestsmetaslashesphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/meta/slashes.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/meta/slashes.php        2016-08-27 06:06:50 UTC (rev 38397)
+++ trunk/tests/phpunit/tests/meta/slashes.php  2016-08-27 08:35:16 UTC (rev 38398)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -16,12 +16,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                self::$comment_id = $factory->comment->create( array( 'comment_post_ID' => self::$post_id ) );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        public static function wpTearDownAfterClass() {
-               self::delete_user( self::$editor_id );
-               wp_delete_comment( self::$comment_id, true );
-               wp_delete_post( self::$post_id, true );
-       }
-
</del><span class="cx" style="display: block; padding: 0 10px">         function setUp() {
</span><span class="cx" style="display: block; padding: 0 10px">                parent::setUp();
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span></span></pre></div>
<a id="trunktestsphpunittestspostrevisionsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/post/revisions.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/post/revisions.php      2016-08-27 06:06:50 UTC (rev 38397)
+++ trunk/tests/phpunit/tests/post/revisions.php        2016-08-27 08:35:16 UTC (rev 38398)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -15,13 +15,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                self::$author_user_id = $factory->user->create( array( 'role' => 'author' ) );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        public static function wpTearDownAfterClass() {
-               $ids = array( self::$admin_user_id, self::$editor_user_id, self::$author_user_id );
-               foreach ( $ids as $id ) {
-                       self::delete_user( $id );
-               }
-       }
-
</del><span class="cx" style="display: block; padding: 0 10px">         function setUp() {
</span><span class="cx" style="display: block; padding: 0 10px">                parent::setUp();
</span><span class="cx" style="display: block; padding: 0 10px">                $this->post_type = rand_str( 20 );
</span></span></pre></div>
<a id="trunktestsphpunittestspostthumbnailsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/post/thumbnails.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/post/thumbnails.php     2016-08-27 06:06:50 UTC (rev 38397)
+++ trunk/tests/phpunit/tests/post/thumbnails.php       2016-08-27 08:35:16 UTC (rev 38398)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -16,11 +16,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                ) );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        public static function wpTearDownAfterClass() {
-               wp_delete_post( self::$post->ID, true );
-               wp_delete_attachment( self::$attachment_id, true );
-       }
-
</del><span class="cx" style="display: block; padding: 0 10px">         function test_has_post_thumbnail() {
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertFalse( has_post_thumbnail( self::$post ) );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertFalse( has_post_thumbnail( self::$post->ID ) );
</span></span></pre></div>
<a id="trunktestsphpunittestspostwpPostphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/post/wpPost.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/post/wpPost.php 2016-08-27 06:06:50 UTC (rev 38397)
+++ trunk/tests/phpunit/tests/post/wpPost.php   2016-08-27 08:35:16 UTC (rev 38398)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -20,11 +20,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                self::$post_id = self::factory()->post->create();
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        public static function wpTearDownAfterClass() {
-               wp_delete_post( 1, true );
-               wp_delete_post( self::$post_id, true );
-       }
-
</del><span class="cx" style="display: block; padding: 0 10px">         /**
</span><span class="cx" style="display: block; padding: 0 10px">         * @ticket 37738
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span></span></pre></div>
<a id="trunktestsphpunittestspostphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/post.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/post.php        2016-08-27 06:06:50 UTC (rev 38397)
+++ trunk/tests/phpunit/tests/post.php  2016-08-27 08:35:16 UTC (rev 38398)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -23,10 +23,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        public static function wpTearDownAfterClass() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                $ids = array( self::$editor_id, self::$grammarian_id );
-               foreach ( $ids as $id ) {
-                       self::delete_user( $id );
-               }
</del><span class="cx" style="display: block; padding: 0 10px">                 remove_role( 'grammarian' );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span></span></pre></div>
<a id="trunktestsphpunittestsquerydatephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/query/date.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/query/date.php  2016-08-27 06:06:50 UTC (rev 38397)
+++ trunk/tests/phpunit/tests/query/date.php    2016-08-27 08:35:16 UTC (rev 38398)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -45,12 +45,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        public static function wpTearDownAfterClass() {
-               foreach ( self::$post_ids as $post_id ) {
-                       wp_delete_post( $post_id, true );
-               }
-       }
-
</del><span class="cx" style="display: block; padding: 0 10px">         public function setUp() {
</span><span class="cx" style="display: block; padding: 0 10px">                parent::setUp();
</span><span class="cx" style="display: block; padding: 0 10px">                unset( $this->q );
</span></span></pre></div>
<a id="trunktestsphpunittestsquerypostStatusphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/query/postStatus.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/query/postStatus.php    2016-08-27 06:06:50 UTC (rev 38397)
+++ trunk/tests/phpunit/tests/query/postStatus.php      2016-08-27 08:35:16 UTC (rev 38398)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -25,18 +25,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                _unregister_post_status( 'privatefoo' );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        public static function wpTearDownAfterClass() {
-               $ids = array( self::$editor_user_id, self::$author_user_id );
-               foreach ( $ids as $id ) {
-                       self::delete_user( $id );
-               }
-
-               wp_delete_post( self::$editor_private_post, true );
-               wp_delete_post( self::$author_private_post, true );
-               wp_delete_post( self::$editor_privatefoo_post, true );
-               wp_delete_post( self::$author_privatefoo_post, true );
-       }
-
</del><span class="cx" style="display: block; padding: 0 10px">         public function test_any_should_not_include_statuses_where_exclude_from_search_is_true() {
</span><span class="cx" style="display: block; padding: 0 10px">                register_post_status( 'foo', array( 'exclude_from_search' => true ) );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span></span></pre></div>
<a id="trunktestsphpunittestsqueryresultsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/query/results.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/query/results.php       2016-08-27 06:06:50 UTC (rev 38397)
+++ trunk/tests/phpunit/tests/query/results.php 2016-08-27 08:35:16 UTC (rev 38398)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -67,20 +67,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                self::$post_ids[] = self::$child_four = $factory->post->create( array( 'post_title' => 'child-four', 'post_parent' => self::$parent_two, 'post_date' => '2007-01-01 00:00:04' ) );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        public static function wpTearDownAfterClass() {
-               foreach ( self::$cat_ids as $cat_id ) {
-                       wp_delete_term( $cat_id, 'category' );
-               }
-
-               foreach ( self::$tag_ids as $tag_id ) {
-                       wp_delete_term( $tag_id, 'post_tag' );
-               }
-
-               foreach ( self::$post_ids as $post_id ) {
-                       wp_delete_post( $post_id, true );
-               }
-       }
-
</del><span class="cx" style="display: block; padding: 0 10px">         function setUp() {
</span><span class="cx" style="display: block; padding: 0 10px">                parent::setUp();
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span></span></pre></div>
<a id="trunktestsphpunittestsquerystickiesphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/query/stickies.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/query/stickies.php      2016-08-27 06:06:50 UTC (rev 38397)
+++ trunk/tests/phpunit/tests/query/stickies.php        2016-08-27 08:35:16 UTC (rev 38398)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -23,12 +23,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                stick_post( self::$posts[8] );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        public static function wpTearDownAfterClass() {
-               foreach ( self::$posts as $p ) {
-                       wp_delete_post( $p, true );
-               }
-       }
-
</del><span class="cx" style="display: block; padding: 0 10px">         public function test_stickies_should_be_ignored_when_is_home_is_false() {
</span><span class="cx" style="display: block; padding: 0 10px">                $q = new WP_Query( array(
</span><span class="cx" style="display: block; padding: 0 10px">                        'year' => date( 'Y' ),
</span></span></pre></div>
<a id="trunktestsphpunittestsrewriteaddRewriteEndpointphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/rewrite/addRewriteEndpoint.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/rewrite/addRewriteEndpoint.php  2016-08-27 06:06:50 UTC (rev 38397)
+++ trunk/tests/phpunit/tests/rewrite/addRewriteEndpoint.php    2016-08-27 08:35:16 UTC (rev 38398)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -15,11 +15,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                self::$test_post_id = $factory->post->create();
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        public static function wpTearDownAfterClass() {
-               wp_delete_post( self::$test_page_id, true );
-               wp_delete_post( self::$test_post_id, true );
-       }
-
</del><span class="cx" style="display: block; padding: 0 10px">         public function setUp() {
</span><span class="cx" style="display: block; padding: 0 10px">                parent::setUp();
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span></span></pre></div>
<a id="trunktestsphpunitteststermgetTheTermsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/term/getTheTerms.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/term/getTheTerms.php    2016-08-27 06:06:50 UTC (rev 38397)
+++ trunk/tests/phpunit/tests/term/getTheTerms.php      2016-08-27 08:35:16 UTC (rev 38398)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -11,12 +11,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                self::$post_ids = $factory->post->create_many( 5 );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        public static function wpTearDownAfterClass() {
-               foreach ( self::$post_ids as $post_id ) {
-                       wp_delete_post( $post_id, true );
-               }
-       }
-
</del><span class="cx" style="display: block; padding: 0 10px">         /**
</span><span class="cx" style="display: block; padding: 0 10px">         * @ticket 22560
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span></span></pre></div>
<a id="trunktestsphpunitteststermwpSetObjectTermsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/term/wpSetObjectTerms.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/term/wpSetObjectTerms.php       2016-08-27 06:06:50 UTC (rev 38397)
+++ trunk/tests/phpunit/tests/term/wpSetObjectTerms.php 2016-08-27 08:35:16 UTC (rev 38398)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -11,12 +11,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                self::$post_ids = $factory->post->create_many( 5 );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        public static function wpTearDownAfterClass() {
-               foreach ( self::$post_ids as $post_id ) {
-                       wp_delete_post( $post_id, true );
-               }
-       }
-
</del><span class="cx" style="display: block; padding: 0 10px">         /**
</span><span class="cx" style="display: block; padding: 0 10px">         * @ticket 26570
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span></span></pre></div>
<a id="trunktestsphpunitteststermwpTermphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/term/wpTerm.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/term/wpTerm.php 2016-08-27 06:06:50 UTC (rev 38397)
+++ trunk/tests/phpunit/tests/term/wpTerm.php   2016-08-27 08:35:16 UTC (rev 38398)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -33,11 +33,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                self::$term_id = self::factory()->term->create( array( 'taxonomy' => 'wptests_tax' ) );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        public static function wpTearDownAfterClass() {
-               wp_delete_term( 1, 'wptests_tax' );
-               wp_delete_term( self::$term_id, 'wptests_tax' );
-       }
-
</del><span class="cx" style="display: block; padding: 0 10px">         /**
</span><span class="cx" style="display: block; padding: 0 10px">         * @ticket 37738
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span></span></pre></div>
<a id="trunktestsphpunitteststermphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/term.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/term.php        2016-08-27 06:06:50 UTC (rev 38397)
+++ trunk/tests/phpunit/tests/term.php  2016-08-27 08:35:16 UTC (rev 38398)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -11,12 +11,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                self::$post_ids = $factory->post->create_many( 5 );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        public static function wpTearDownAfterClass() {
-               foreach ( self::$post_ids as $post_id ) {
-                       wp_delete_post( $post_id, true );
-               }
-       }
-
</del><span class="cx" style="display: block; padding: 0 10px">         /**
</span><span class="cx" style="display: block; padding: 0 10px">         * @ticket 29911
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span></span></pre></div>
<a id="trunktestsphpunittestsusercapabilitiesphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/user/capabilities.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/user/capabilities.php   2016-08-27 06:06:50 UTC (rev 38397)
+++ trunk/tests/phpunit/tests/user/capabilities.php     2016-08-27 08:35:16 UTC (rev 38398)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -20,12 +20,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        public static function wpTearDownAfterClass() {
-               foreach ( self::$users as $role => $user ) {
-                       self::delete_user( $user->ID );
-               }
-       }
-
</del><span class="cx" style="display: block; padding: 0 10px">         function setUp() {
</span><span class="cx" style="display: block; padding: 0 10px">                parent::setUp();
</span><span class="cx" style="display: block; padding: 0 10px">                // keep track of users we create
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1191,7 +1185,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                foreach ( $caps as $cap => $roles ) {
</span><span class="cx" style="display: block; padding: 0 10px">                        $this->assertFalse( current_user_can( $cap ), "Non-logged-in user should not have the {$cap} capability" );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                }               
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         }
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span></span></pre></div>
<a id="trunktestsphpunittestsusercountUserPostsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/user/countUserPosts.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/user/countUserPosts.php 2016-08-27 06:06:50 UTC (rev 38397)
+++ trunk/tests/phpunit/tests/user/countUserPosts.php   2016-08-27 08:35:16 UTC (rev 38398)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -27,21 +27,13 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        'post_author' => 12345,
</span><span class="cx" style="display: block; padding: 0 10px">                        'post_type'   => 'wptests_pt',
</span><span class="cx" style="display: block; padding: 0 10px">                ) ) );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
</ins><span class="cx" style="display: block; padding: 0 10px">                 self::$post_ids[] = $factory->post->create( array(
</span><span class="cx" style="display: block; padding: 0 10px">                        'post_author' => 12345,
</span><span class="cx" style="display: block; padding: 0 10px">                        'post_type'   => 'wptests_pt',
</span><span class="cx" style="display: block; padding: 0 10px">                ) );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        public static function wpTearDownAfterClass() {
-               self::delete_user( self::$user_id );
-
-               foreach ( self::$post_ids as $post_id ) {
-                       wp_delete_post( $post_id, true );
-               }
-       }
-
</del><span class="cx" style="display: block; padding: 0 10px">         public function setUp() {
</span><span class="cx" style="display: block; padding: 0 10px">                parent::setUp();
</span><span class="cx" style="display: block; padding: 0 10px">                register_post_type( 'wptests_pt' );
</span></span></pre></div>
<a id="trunktestsphpunittestsuserlistAuthorsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/user/listAuthors.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/user/listAuthors.php    2016-08-27 06:06:50 UTC (rev 38397)
+++ trunk/tests/phpunit/tests/user/listAuthors.php      2016-08-27 08:35:16 UTC (rev 38398)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -40,18 +40,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        public static function wpTearDownAfterClass() {
-               self::$user_ids[] = self::$fred_id;
-
-               foreach ( self::$user_ids as $user_id ) {
-                       self::delete_user( $user_id );
-               }
-
-               foreach ( self::$posts as $post_id ) {
-                       wp_delete_post( $post_id, true );
-               }
-       }
-
</del><span class="cx" style="display: block; padding: 0 10px">         function test_wp_list_authors_default() {
</span><span class="cx" style="display: block; padding: 0 10px">                $expected['default'] = '<li><a href="' . self::$user_urls[1] . '" title="Posts by bob">bob</a></li><li><a href="' . self::$user_urls[2] . '" title="Posts by paul">paul</a></li><li><a href="' . self::$user_urls[0] . '" title="Posts by zack">zack</a></li>';
</span><span class="cx" style="display: block; padding: 0 10px">                $this->AssertEquals( $expected['default'], wp_list_authors( array( 'echo' => false ) ) );
</span></span></pre></div>
<a id="trunktestsphpunittestsuserqueryphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/user/query.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/user/query.php  2016-08-27 06:06:50 UTC (rev 38397)
+++ trunk/tests/phpunit/tests/user/query.php    2016-08-27 08:35:16 UTC (rev 38398)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -35,22 +35,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                ) );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        public static function wpTearDownAfterClass() {
-               $sets = array(
-                       self::$author_ids,
-                       self::$sub_ids,
-                       self::$editor_ids,
-                       array( self::$contrib_id ),
-                       self::$admin_ids
-               );
-
-               foreach ( $sets as $set ) {
-                       foreach ( $set as $id ) {
-                               self::delete_user( $id );
-                       }
-               }
-       }
-
</del><span class="cx" style="display: block; padding: 0 10px">         function test_get_and_set() {
</span><span class="cx" style="display: block; padding: 0 10px">                $users = new WP_User_Query();
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span></span></pre></div>
<a id="trunktestsphpunittestsuserwpSetCurrentUserphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/user/wpSetCurrentUser.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/user/wpSetCurrentUser.php       2016-08-27 06:06:50 UTC (rev 38397)
+++ trunk/tests/phpunit/tests/user/wpSetCurrentUser.php 2016-08-27 08:35:16 UTC (rev 38398)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -13,12 +13,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                self::$user_ids[] = self::$user_id2 = $factory->user->create( array( 'user_login' => 'foo', ) );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        public static function wpTearDownAfterClass() {
-               foreach ( self::$user_ids as $id ) {
-                       self::delete_user( $id );
-               }
-       }
-
</del><span class="cx" style="display: block; padding: 0 10px">         public function test_set_by_id() {
</span><span class="cx" style="display: block; padding: 0 10px">                $user = wp_set_current_user( self::$user_id );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span></span></pre></div>
<a id="trunktestsphpunittestsuserphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/user.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/user.php        2016-08-27 06:06:50 UTC (rev 38397)
+++ trunk/tests/phpunit/tests/user.php  2016-08-27 08:35:16 UTC (rev 38398)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -46,12 +46,6 @@
</span><span class="cx" style="display: block; padding: 0 10px">                self::$_author = get_user_by( 'ID', self::$author_id );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        public static function wpTearDownAfterClass() {
-               foreach ( self::$user_ids as $id ) {
-                       self::delete_user( $id );
-               }
-       }
-
</del><span class="cx" style="display: block; padding: 0 10px">         function setUp() {
</span><span class="cx" style="display: block; padding: 0 10px">                parent::setUp();
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span></span></pre>
</div>
</div>

</body>
</html>