WordPress.org

Make WordPress Core

Changeset 309 in tests


Ignore:
Timestamp:
06/17/2010 08:41:44 PM (8 years ago)
Author:
westi
Message:

Add another test case for menu_page_url. See WP#13923 props nacin.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-testcase/test_admin_includes_plugin.php

    r308 r309  
    3838        add_submenu_page('mt-top-level-handle', 'Test Sublevel 2', 'Test Sublevel 2', 'manage_options', 'sub-page2', 'mt_sublevel_page2');
    3939        add_theme_page('With Spaces', 'With Spaces', 'manage_options', 'With Spaces', 'mt_tools_page');
     40        add_pages_page('Appending Query Arg', 'Test Pages', 'edit_pages', 'testpages', 'mt_pages_page' );
    4041       
    4142        //TODO: review the http://null.host/ here and work out if this is portable enough for testing on other hosts
     
    4748        $expected['not_registered'] = '';
    4849        $expected['With Spaces'] = 'http://null.host/wp-admin/themes.php?page=WithSpaces';
    49        
     50        $expected['testpages'] = 'http://null.host/wp-admin/edit.php?post_type=page&page=testpages';
     51
    5052        foreach ($expected as $name => $value) {
    5153            $this->assertEquals($value, menu_page_url($name, false) );
Note: See TracChangeset for help on using the changeset viewer.