wordpress-develop/tests/phpunit/tests/query
Drew Jaynes 0ea2acb720 Tests: Permalink Structures Phase II: DRY up logic for setting permalink structures in test methods.
Renames `reset_permalinks()` to `set_permalink_structure()` (mimicking `$wp_rewrite->set_permalink_structure()`) and allows it to accept an optional permalink structure. In this way, we can double dip using it to both set and reset the permalink structure from anywhere.

Removes alot of duplicated code from tests.

See #33968.


git-svn-id: https://develop.svn.wordpress.org/trunk@34810 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-03 20:54:11 +00:00
..
conditionals.php Tests: Permalink Structures Phase II: DRY up logic for setting permalink structures in test methods. 2015-10-03 20:54:11 +00:00
date.php Share fixtures across a number of query-related test classes. 2014-11-08 15:29:31 +00:00
dateQuery.php Introduced dayofweek_iso time param for WP_Date_Query. 2014-11-01 03:23:15 +00:00
isTerm.php Tests: Permalink Structures Phase II: DRY up logic for setting permalink structures in test methods. 2015-10-03 20:54:11 +00:00
metaQuery.php Add tests for the conversion of 'meta_*' query vars to $meta_query objects in all query classes. 2015-03-07 16:34:50 +00:00
parseQuery.php Check that search value is scalar before parsing. 2014-10-16 03:31:27 +00:00
postStatus.php When querying for a specific post, allow posts with a non-public status to be returned as long as that status is specified. 2015-02-01 20:25:42 +00:00
results.php Tests: Introduce WP_UnitTestCase::reset_permalinks(), an attempt to DRY up logic for resetting and restoring default permalinks on setUp() and tearDown(). 2015-10-03 17:14:12 +00:00
search.php In PHPUnit test classes, parent::tearDown() should be the last thing done in tearDown() methods. 2015-03-05 13:14:15 +00:00
setupPostdata.php Allow setup_postdata() to accept a post ID. 2015-09-12 20:57:06 +00:00
stickies.php Add tests for some of WP_Query's sticky post logic. 2015-02-13 02:24:57 +00:00
taxQuery.php Use field-specific sanitization in WP_Tax_Query::transform_query(). 2015-02-06 02:01:24 +00:00
verboseRewriteRules.php Tests: Permalink Structures Phase II: DRY up logic for setting permalink structures in test methods. 2015-10-03 20:54:11 +00:00