Make WordPress Core

Changeset 34 in tests


Ignore:
Timestamp:
09/24/2007 11:22:32 PM (18 years ago)
Author:
tellyworth
Message:

fix user tests in mu

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-test.php

    r6 r34  
    5252wp_install(WP_BLOG_TITLE, WP_USER_NAME, WP_USER_EMAIL, true);
    5353
     54if (TEST_MU) {
     55        // wp-settings.php would normally init this stuff, but that doesn't work because we've
     56        // only just installed
     57        $GLOBALS['blog_id'] = 1;
     58        $GLOBALS['wpdb']->blogid = 1;
     59        $GLOBALS['current_blog'] = $GLOBALS['wpdb']->get_results('SELECT * from wp_blogs where blog_id=1');
     60}
     61
    5462// make sure we're installed
    5563assert(true == is_blog_installed());
  • wp-testcase/test_user.php

    r21 r34  
    143143    // simple test for user dropdown
    144144    function test_wp_dropdown_users() {
     145        // mu doesn't have this function?
     146        if (!is_callable('wp_dropdown_users'))
     147            return $this->markTestSkipped();
     148
    145149        // add some users
    146150        foreach (array('administrator', 'editor', 'author', 'contributor', 'subscriber') as $role) {
Note: See TracChangeset for help on using the changeset viewer.