<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[Tests][877] trunk/tests: Add test groups to all tests without them.</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg > ul, #logmsg > ol { margin-left: 0; margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://unit-tests.trac.wordpress.org/changeset/877">877</a></dd>
<dt>Author</dt> <dd>nacin</dd>
<dt>Date</dt> <dd>2012-07-03 18:23:14 +0000 (Tue, 03 Jul 2012)</dd>
</dl>

<h3>Log Message</h3>
<pre>Add test groups to all tests without them.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkteststest_admin_includes_screenphp">trunk/tests/test_admin_includes_screen.php</a></li>
<li><a href="#trunkteststest_admin_includes_templatephp">trunk/tests/test_admin_includes_template.php</a></li>
<li><a href="#trunkteststest_imagephp">trunk/tests/test_image.php</a></li>
<li><a href="#trunkteststest_includes_canonicalphp">trunk/tests/test_includes_canonical.php</a></li>
<li><a href="#trunkteststest_includes_classwpxmlrpcserverphp">trunk/tests/test_includes_class-wp-xmlrpc-server.php</a></li>
<li><a href="#trunkteststest_includes_feed_rss2php">trunk/tests/test_includes_feed_rss2.php</a></li>
<li><a href="#trunkteststest_includes_functionsphp">trunk/tests/test_includes_functions.php</a></li>
<li><a href="#trunkteststest_includes_ksesphp">trunk/tests/test_includes_kses.php</a></li>
<li><a href="#trunkteststest_includes_metaphp">trunk/tests/test_includes_meta.php</a></li>
<li><a href="#trunkteststest_includes_postphp">trunk/tests/test_includes_post.php</a></li>
<li><a href="#trunkteststest_metaphp">trunk/tests/test_meta.php</a></li>
<li><a href="#trunkteststest_post_filteringphp">trunk/tests/test_post_filtering.php</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkteststest_simplephp">trunk/tests/test_simple.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkteststest_admin_includes_screenphp"></a>
<div class="modfile"><h4>Modified: trunk/tests/test_admin_includes_screen.php (876 => 877)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/tests/test_admin_includes_screen.php        2012-07-03 17:40:48 UTC (rev 876)
+++ trunk/tests/test_admin_includes_screen.php        2012-07-03 18:23:14 UTC (rev 877)
</span><span class="lines">@@ -1,5 +1,8 @@
</span><span class="cx"> &lt;?php
</span><span class="cx"> 
</span><ins>+/**
+ * @group admin
+ */
</ins><span class="cx"> class WPTestScreen extends WP_UnitTestCase {
</span><span class="cx">         var $core_screens = array(
</span><span class="cx">                 'index.php' =&gt; array( 'base' =&gt; 'dashboard', 'id' =&gt; 'dashboard' ),
</span></span></pre></div>
<a id="trunkteststest_admin_includes_templatephp"></a>
<div class="modfile"><h4>Modified: trunk/tests/test_admin_includes_template.php (876 => 877)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/tests/test_admin_includes_template.php        2012-07-03 17:40:48 UTC (rev 876)
+++ trunk/tests/test_admin_includes_template.php        2012-07-03 18:23:14 UTC (rev 877)
</span><span class="lines">@@ -1,4 +1,7 @@
</span><span class="cx"> &lt;?php
</span><ins>+/**
+ * @group admin
+ */
</ins><span class="cx"> class WPTestCheckedSelected extends WP_UnitTestCase {
</span><span class="cx">         function test_equal() {
</span><span class="cx">                 $this-&gt;assertEquals(' selected=\'selected\'', selected('foo','foo',false));
</span></span></pre></div>
<a id="trunkteststest_imagephp"></a>
<div class="modfile"><h4>Modified: trunk/tests/test_image.php (876 => 877)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/tests/test_image.php        2012-07-03 17:40:48 UTC (rev 876)
+++ trunk/tests/test_image.php        2012-07-03 18:23:14 UTC (rev 877)
</span><span class="lines">@@ -1,5 +1,10 @@
</span><span class="cx"> &lt;?php
</span><span class="cx"> 
</span><ins>+/**
+ * @group image
+ * @group media
+ * @group upload
+ */
</ins><span class="cx"> class TestImageMetaFunctions extends WP_UnitTestCase {
</span><span class="cx">         function setUp() {
</span><span class="cx">                 if ( ! extension_loaded( 'gd' ) )
</span><span class="lines">@@ -131,6 +136,11 @@
</span><span class="cx">         }
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+/**
+ * @group image
+ * @group media
+ * @group upload
+ */
</ins><span class="cx"> class TestImageSizeFunctions extends WP_UnitTestCase {
</span><span class="cx">         function test_constrain_dims_zero() {
</span><span class="cx">                 if (!is_callable('wp_constrain_dimensions'))
</span><span class="lines">@@ -323,6 +333,11 @@
</span><span class="cx"> 
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+/**
+ * @group image
+ * @group media
+ * @group upload
+ */
</ins><span class="cx"> class TestImageResizeDimensions extends WP_UnitTestCase {
</span><span class="cx">         function test_400x400_no_crop() {
</span><span class="cx">                 // landscape: resize 640x480 to fit 400x400: 400x300
</span><span class="lines">@@ -448,6 +463,11 @@
</span><span class="cx"> 
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+/**
+ * @group image
+ * @group media
+ * @group upload
+ */
</ins><span class="cx"> class TestImageResize extends WP_UnitTestCase {
</span><span class="cx">         // image_resize( $file, $max_w, $max_h, $crop=false, $suffix=null, $dest_path=null, $jpeg_quality=75)
</span><span class="cx"> 
</span><span class="lines">@@ -568,6 +588,11 @@
</span><span class="cx"> 
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+/**
+ * @group image
+ * @group media
+ * @group upload
+ */
</ins><span class="cx"> class TestIsImageFunctions extends WP_UnitTestCase {
</span><span class="cx">         function test_is_image_positive() {
</span><span class="cx">                 // these are all image files recognized by php
</span></span></pre></div>
<a id="trunkteststest_includes_canonicalphp"></a>
<div class="modfile"><h4>Modified: trunk/tests/test_includes_canonical.php (876 => 877)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/tests/test_includes_canonical.php        2012-07-03 17:40:48 UTC (rev 876)
+++ trunk/tests/test_includes_canonical.php        2012-07-03 18:23:14 UTC (rev 877)
</span><span class="lines">@@ -1,12 +1,13 @@
</span><span class="cx"> &lt;?php
</span><del>-
-/*
</del><ins>+/**
</ins><span class="cx">  * Tests Canonical redirections.
</span><span class="cx">  *
</span><span class="cx">  * In the process of doing so, it also tests WP, WP_Rewrite and WP_Query, A fail here may show a bug in any one of these areas.
</span><span class="cx">  *
</span><ins>+ * @group canonical
+ * @group rewrite
+ * @group query
</ins><span class="cx">  */
</span><del>-
</del><span class="cx"> class WP_Test_Canonical extends WP_UnitTestCase {
</span><span class="cx"> 
</span><span class="cx">         // This can be defined in a subclass of this class which contains it's own data() method, those tests will be run against the specified permastruct
</span><span class="lines">@@ -272,6 +273,11 @@
</span><span class="cx">         }
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+/**
+ * @group canonical
+ * @group rewrite
+ * @group query
+ */
</ins><span class="cx"> class WP_Canonical_PageOnFront extends WP_Test_Canonical {
</span><span class="cx">         function setUp() {
</span><span class="cx">                 parent::setUp();
</span><span class="lines">@@ -302,6 +308,11 @@
</span><span class="cx">         }
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+/**
+ * @group canonical
+ * @group rewrite
+ * @group query
+ */
</ins><span class="cx"> class WP_Canonical_CustomRules extends WP_Test_Canonical {
</span><span class="cx">         function setUp() {
</span><span class="cx">                 parent::setUp();
</span><span class="lines">@@ -329,6 +340,11 @@
</span><span class="cx">         }
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+/**
+ * @group canonical
+ * @group rewrite
+ * @group query
+ */
</ins><span class="cx"> class WP_Canonical_NoRewrite extends WP_Test_Canonical {
</span><span class="cx"> 
</span><span class="cx">         var $structure = '';
</span></span></pre></div>
<a id="trunkteststest_includes_classwpxmlrpcserverphp"></a>
<div class="modfile"><h4>Modified: trunk/tests/test_includes_class-wp-xmlrpc-server.php (876 => 877)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/tests/test_includes_class-wp-xmlrpc-server.php        2012-07-03 17:40:48 UTC (rev 876)
+++ trunk/tests/test_includes_class-wp-xmlrpc-server.php        2012-07-03 18:23:14 UTC (rev 877)
</span><span class="lines">@@ -3,7 +3,7 @@
</span><span class="cx"> include_once(ABSPATH . WPINC . '/class-IXR.php');
</span><span class="cx"> include_once(ABSPATH . WPINC . '/class-wp-xmlrpc-server.php');
</span><span class="cx"> 
</span><del>-/*
</del><ins>+/**
</ins><span class="cx">  * @group xmlrpc
</span><span class="cx">  */
</span><span class="cx"> class TestXMLRPCServer_Disabled extends WP_UnitTestCase {
</span></span></pre></div>
<a id="trunkteststest_includes_feed_rss2php"></a>
<div class="modfile"><h4>Modified: trunk/tests/test_includes_feed_rss2.php (876 => 877)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/tests/test_includes_feed_rss2.php        2012-07-03 17:40:48 UTC (rev 876)
+++ trunk/tests/test_includes_feed_rss2.php        2012-07-03 18:23:14 UTC (rev 877)
</span><span class="lines">@@ -1,10 +1,13 @@
</span><span class="cx"> &lt;?php
</span><span class="cx"> 
</span><del>-// test the RSS 2.0 feed by generating a feed, parsing it, and checking that the
-// parsed contents match the contents of the posts stored in the database.  Since
-// we're using a real XML parser, this confirms that the feed is valid, well formed,
-// and contains the right stuff.
-
</del><ins>+/**
+ * test the RSS 2.0 feed by generating a feed, parsing it, and checking that the
+ * parsed contents match the contents of the posts stored in the database.  Since
+ * we're using a real XML parser, this confirms that the feed is valid, well formed,
+ * and contains the right stuff.
+ *
+ * @group feed
+ */
</ins><span class="cx"> class TestFeedRss2 extends WP_UnitTestCase {
</span><span class="cx"> 
</span><span class="cx">         function setUp() {
</span></span></pre></div>
<a id="trunkteststest_includes_functionsphp"></a>
<div class="modfile"><h4>Modified: trunk/tests/test_includes_functions.php (876 => 877)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/tests/test_includes_functions.php        2012-07-03 17:40:48 UTC (rev 876)
+++ trunk/tests/test_includes_functions.php        2012-07-03 18:23:14 UTC (rev 877)
</span><span class="lines">@@ -1,5 +1,8 @@
</span><span class="cx"> &lt;?php
</span><span class="cx"> 
</span><ins>+/**
+ * @group functions.php
+ */
</ins><span class="cx"> class TestFunctions extends WP_UnitTestCase {
</span><span class="cx">         function test_wp_parse_args_object() {
</span><span class="cx">                 $x = new MockClass;
</span><span class="lines">@@ -241,7 +244,9 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> /**
</span><del>- * Test wp_filter_object_list(), wp_list_filter(), wp_list_pluck()
</del><ins>+ * Test wp_filter_object_list(), wp_list_filter(), wp_list_pluck().
+ *
+ * @group functions.php
</ins><span class="cx">  */
</span><span class="cx"> class TestListFilter extends WP_UnitTestCase {
</span><span class="cx">         var $object_list = array();
</span><span class="lines">@@ -425,6 +430,10 @@
</span><span class="cx">         }
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+/**
+ * @group themes
+ * @group plugins
+ */
</ins><span class="cx"> class Test_WP_File_Headers extends WP_UnitTestCase {
</span><span class="cx">         function test_get_file_data() {
</span><span class="cx">                 $theme_headers = array(
</span></span></pre></div>
<a id="trunkteststest_includes_ksesphp"></a>
<div class="modfile"><h4>Modified: trunk/tests/test_includes_kses.php (876 => 877)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/tests/test_includes_kses.php        2012-07-03 17:40:48 UTC (rev 876)
+++ trunk/tests/test_includes_kses.php        2012-07-03 18:23:14 UTC (rev 877)
</span><span class="lines">@@ -1,8 +1,10 @@
</span><span class="cx"> &lt;?php
</span><del>-/*
</del><ins>+/**
</ins><span class="cx">  * Some simple test cases for KSES post content filtering
</span><ins>+ *
+ * @group formatting
+ * @group kses
</ins><span class="cx">  */
</span><del>-
</del><span class="cx"> class Test_wp_filter_post_kses extends WP_UnitTestCase {
</span><span class="cx">         function test_wp_filter_post_kses_address() {
</span><span class="cx">                 global $allowedposttags;
</span></span></pre></div>
<a id="trunkteststest_includes_metaphp"></a>
<div class="modfile"><h4>Modified: trunk/tests/test_includes_meta.php (876 => 877)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/tests/test_includes_meta.php        2012-07-03 17:40:48 UTC (rev 876)
+++ trunk/tests/test_includes_meta.php        2012-07-03 18:23:14 UTC (rev 877)
</span><span class="lines">@@ -1,5 +1,8 @@
</span><span class="cx"> &lt;?php
</span><span class="cx"> 
</span><ins>+/**
+ * @group meta
+ */
</ins><span class="cx"> class WPTestIncludesMeta extends WP_UnitTestCase {
</span><span class="cx">         function setUp() {
</span><span class="cx">                 parent::setUp();
</span></span></pre></div>
<a id="trunkteststest_includes_postphp"></a>
<div class="modfile"><h4>Modified: trunk/tests/test_includes_post.php (876 => 877)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/tests/test_includes_post.php        2012-07-03 17:40:48 UTC (rev 876)
+++ trunk/tests/test_includes_post.php        2012-07-03 18:23:14 UTC (rev 877)
</span><span class="lines">@@ -1,7 +1,10 @@
</span><span class="cx"> &lt;?php
</span><span class="cx"> 
</span><del>-// test wp-includes/post.php
-
</del><ins>+/**
+ * test wp-includes/post.php
+ *
+ * @group post
+ */
</ins><span class="cx"> class WPTestIncludesPost extends WP_UnitTestCase {
</span><span class="cx">         function setUp() {
</span><span class="cx">                 parent::setUp();
</span><span class="lines">@@ -466,6 +469,11 @@
</span><span class="cx">         }
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+/**
+ * @group post
+ * @group media
+ * @group upload
+ */
</ins><span class="cx"> class WPTestAttachments extends WP_UnitTestCase {
</span><span class="cx"> 
</span><span class="cx">         function tearDown() {
</span><span class="lines">@@ -665,6 +673,10 @@
</span><span class="cx"> 
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+/**
+ * @group post
+ * @group meta
+ */
</ins><span class="cx"> class WPTestPostMeta extends WP_UnitTestCase {
</span><span class="cx">         function setUp() {
</span><span class="cx">                 parent::setUp();
</span><span class="lines">@@ -905,6 +917,9 @@
</span><span class="cx">         }
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+/**
+ * @group post
+ */
</ins><span class="cx"> class WPTestPostTypes extends WP_UnitTestCase {
</span><span class="cx">         function setUp() {
</span><span class="cx">                 parent::setUp();
</span></span></pre></div>
<a id="trunkteststest_metaphp"></a>
<div class="modfile"><h4>Modified: trunk/tests/test_meta.php (876 => 877)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/tests/test_meta.php        2012-07-03 17:40:48 UTC (rev 876)
+++ trunk/tests/test_meta.php        2012-07-03 18:23:14 UTC (rev 877)
</span><span class="lines">@@ -1,6 +1,10 @@
</span><span class="cx"> &lt;?php
</span><span class="cx"> 
</span><del>-// just make sure the test framework is working
</del><ins>+/**
+ * just make sure the test framework is working
+ *
+ * @group testsuite
+ */
</ins><span class="cx"> class WPTestMeta extends WP_UnitTestCase {
</span><span class="cx">         var $val;
</span><span class="cx"> 
</span><span class="lines">@@ -41,7 +45,11 @@
</span><span class="cx"> 
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-// test helper utility functions
</del><ins>+/**
+ * test helper utility functions
+ *
+ * @group testsuite
+ */
</ins><span class="cx"> class WPTestUtils extends WP_UnitTestCase {
</span><span class="cx"> 
</span><span class="cx">         function test_strip_ws() {
</span></span></pre></div>
<a id="trunkteststest_post_filteringphp"></a>
<div class="modfile"><h4>Modified: trunk/tests/test_post_filtering.php (876 => 877)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/tests/test_post_filtering.php        2012-07-03 17:40:48 UTC (rev 876)
+++ trunk/tests/test_post_filtering.php        2012-07-03 18:23:14 UTC (rev 877)
</span><span class="lines">@@ -4,7 +4,7 @@
</span><span class="cx"> // these tests don't care what code is responsible for filtering or how it is called, just that it happens when a post is saved.
</span><span class="cx"> 
</span><span class="cx"> /**
</span><del>- * @group posts
</del><ins>+ * @group post
</ins><span class="cx">  */
</span><span class="cx"> class TestPostFiltering extends WP_UnitTestCase {
</span><span class="cx">         function setUp() {
</span></span></pre></div>
<a id="trunkteststest_simplephp"></a>
<div class="delfile"><h4>Deleted: trunk/tests/test_simple.php (876 => 877)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/tests/test_simple.php        2012-07-03 17:40:48 UTC (rev 876)
+++ trunk/tests/test_simple.php        2012-07-03 18:23:14 UTC (rev 877)
</span><span class="lines">@@ -1,10 +0,0 @@
</span><del>-&lt;?php
-
-/**
- * Simple test to verify that PHPUnit is working correctly.
- */
-class SimpleTest extends WP_UnitTestCase {
-        function test_simple() {
-                $this-&gt;assertTrue(true);
-        }
-}
</del><span class="cx">\ No newline at end of file
</span></span></pre>
</div>
</div>

</body>
</html>