Make WordPress Core


Ignore:
Timestamp:
01/27/2015 08:03:50 PM (9 years ago)
Author:
boonebgorges
Message:

Improve organiation of tax_query and meta_query unit tests.

meta_query tests have been moved to tests/phpunit/tests/query/metaQuery.php and tax_query tests to tests/phpunit/tests/query/taxQuery.php. This is an improvement because (a) it better corresponds to the way that other WP_Query parameter tests are organized, (b) splitting meta and tax tests into separate classes simplifies the required @group annotations, and (c) the tests have nothing to do with posts per se, and so do not belong in the post subdirectory.

The tests previously found at tests/phpunit/tests/query/taxQuery.php have been moved to isTerm.php in the same directory. These tests are related to the is_* functions that have to do with taxonomy terms, like is_category().

See #26999.

File:
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/query/isTerm.php

    r31285 r31286  
    22
    33/**
    4  * Test the is_*() functions in query.php across the URL structure
     4 * Test the is_*() functions in query.php related to taxonomy terms across the URL structure.
    55 *
    66 * This exercises both query.php and rewrite.php: urls are fed through the rewrite code,
     
    99 * @group query
    1010 * @group rewrite
     11 * @group taxonomy
    1112 */
    12 class Tests_Query_TaxQuery extends WP_UnitTestCase {
     13class Tests_Query_IsTerm extends WP_UnitTestCase {
    1314    protected $tag_id;
    1415    protected $cat_id;
Note: See TracChangeset for help on using the changeset viewer.