Make WordPress Core

Changeset 904 in tests for trunk/tests/query.php


Ignore:
Timestamp:
07/18/2012 07:01:41 PM (12 years ago)
Author:
nacin
Message:

Rename tests to conform to this standard: the class Tests_A_B_C.php should be found in Tests/A/B/C.php.

One class per file. Tests are now organized by general component, rather than by the core file they are found in.

Work in progress. Some classes need to be renamed, and some files still need to be moved (and split up).

File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/tests/query.php

    r903 r904  
    1010 * @group rewrite
    1111 */
    12 class TestWPQueryVars extends WP_UnitTestCase {
     12class Tests_Query extends WP_UnitTestCase {
    1313
    1414    protected $page_ids;
     
    631631    // '[0-9]{4}/[0-9]{1,2}/[0-9]{1,2}/[^/]+/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?attachment=$matches[1]&feed=$matches[2]',
    632632}
    633 
    634 /**
    635  * @group query
    636  * @group rewrite
    637  */
    638 class TestWPQueryVerbosePageRules extends TestWPQueryVars {
    639     function setUp() {
    640         parent::setUp();
    641         global $wp_rewrite;
    642         update_option( 'permalink_structure', '/%category%/%year%/%postname%/' );
    643         create_initial_taxonomies();
    644         $GLOBALS['wp_rewrite']->init();
    645         flush_rewrite_rules();
    646     }
    647 }
Note: See TracChangeset for help on using the changeset viewer.