Make WordPress Core

Changeset 30267


Ignore:
Timestamp:
11/07/2014 01:24:19 AM (12 years ago)
Author:
boonebgorges
Message:

Unset the default permalink structure after installing Multisite for automated tests.

Most of our unit tests that involve permalinks expect non-pretty permalinks;
this is the default setting for WP. However, when the test suite installs
multisite, populate_network() is run before WP recogizes itself as multisite,
which leads to pretty permalinks being set. This breaks a number of unit
tests in ways that are difficult to trace.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/install.php

    r28988 r30267  
    5757        install_network();
    5858        populate_network( 1, WP_TESTS_DOMAIN, WP_TESTS_EMAIL, $title, '/', $subdomain_install );
     59        $wp_rewrite->set_permalink_structure( '' );
    5960}
Note: See TracChangeset for help on using the changeset viewer.