Make WordPress Core


Ignore:
Timestamp:
07/03/2014 01:50:02 AM (10 years ago)
Author:
wonderboymusic
Message:

Make sure permalink structure is consistent when running query tests.

See #28706.

File:
1 edited

Legend:

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

    r27511 r28967  
    22
    33class Tests_Query extends WP_UnitTestCase {
     4
     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    }
    416
    517    /**
Note: See TracChangeset for help on using the changeset viewer.