WordPress.org

Make WordPress Core

Changeset 1140 in tests


Ignore:
Timestamp:
11/20/12 17:18:28 (20 months ago)
Author:
ryan
Message:

Expect a pretty permalink.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/link.php

    r1114 r1140  
    1515        $old_req_uri = $_SERVER['REQUEST_URI']; 
    1616 
     17        global $wp_rewrite; 
     18        $wp_rewrite->set_permalink_structure('/%year%/%monthnum%/%day%/%postname%/'); 
     19        $wp_rewrite->flush_rules(); 
     20 
    1721        add_filter( 'home_url', array( $this, '_get_pagenum_link_cb' ) ); 
    1822        $_SERVER['REQUEST_URI'] = '/woohoo'; 
     
    2024         
    2125        remove_filter( 'home_url', array( $this, '_get_pagenum_link_cb' ) ); 
    22         $this->assertEquals( $paged, home_url( '/WooHoo/?paged=2' ) ); 
     26        $this->assertEquals( $paged, home_url( '/WooHoo/page/2/' ) ); 
    2327 
    2428        $_SERVER['REQUEST_URI'] = $old_req_uri; 
Note: See TracChangeset for help on using the changeset viewer.