Changeset 34 in tests
- Timestamp:
- 09/24/2007 11:22:32 PM (18 years ago)
- Files:
-
- 2 edited
-
wp-test.php (modified) (1 diff)
-
wp-testcase/test_user.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-test.php
r6 r34 52 52 wp_install(WP_BLOG_TITLE, WP_USER_NAME, WP_USER_EMAIL, true); 53 53 54 if (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 54 62 // make sure we're installed 55 63 assert(true == is_blog_installed()); -
wp-testcase/test_user.php
r21 r34 143 143 // simple test for user dropdown 144 144 function test_wp_dropdown_users() { 145 // mu doesn't have this function? 146 if (!is_callable('wp_dropdown_users')) 147 return $this->markTestSkipped(); 148 145 149 // add some users 146 150 foreach (array('administrator', 'editor', 'author', 'contributor', 'subscriber') as $role) {
Note: See TracChangeset
for help on using the changeset viewer.