wordpress-develop/tests/phpunit/tests/query/verboseRewriteRules.php
Boone Gorges 04237900a6 Require dependencies when appropriate in some unit test files.
Previously, attempting to run certain test files in isolation would resultin
fatal errors, as the parent classes had not been loaded.

Props isaacchapman.
Fixes #32984.

git-svn-id: https://develop.svn.wordpress.org/trunk@33250 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-14 03:07:13 +00:00

23 lines
408 B
PHP

<?php
require_once dirname( __FILE__ ) . '/conditionals.php';
/**
* @group query
* @group rewrite
*/
class Tests_Query_VerbosePageRules extends Tests_Query_Conditionals {
function setUp() {
global $wp_rewrite;
parent::setUp();
$wp_rewrite->init();
$wp_rewrite->set_permalink_structure( '/%category%/%year%/%postname%/' );
create_initial_taxonomies();
$wp_rewrite->flush_rules();
}
}