Skip to content

Commit 26aa4e4

Browse files
author
wonderboymusic
committed
Make sure permalink structure is consistent when running query tests.
See #28706. git-svn-id: https://develop.svn.wordpress.org/trunk@28967 602fd350-edb4-49c9-b593-d223f7449a82
1 parent f23a5ef commit 26aa4e4

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/phpunit/tests/query.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@
22

33
class Tests_Query extends WP_UnitTestCase {
44

5+
function setUp() {
6+
global $wp_rewrite;
7+
parent::setUp();
8+
9+
$wp_rewrite->init();
10+
$wp_rewrite->set_permalink_structure( '/%year%/%monthnum%/%day%/%postname%/' );
11+
12+
create_initial_taxonomies();
13+
14+
$wp_rewrite->flush_rules();
15+
}
16+
517
/**
618
* @ticket 16746
719
*/

0 commit comments

Comments
 (0)