WordPress.org

Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#14057 closed defect (bug) (invalid)

Wordpress MU 2.91 Test Suite Errors

Reported by: dvmorris Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.9.1
Component: Unit Tests Keywords: phpunit
Focuses: Cc:

Description

I'm trying to run the latest version of the test suite (http://svn.automattic.com/wordpress-tests/) against wordpress MU by passing "-v mu" on the command line, and I get a whole slew of errors related to database tables being missing:

WordPress database error Table 'wordpress_test.wp_sitemeta' doesn't exist for query SELECT meta_value FROM wp_sitemeta WHERE meta_key = 'wpmu_sitewide_plugins' AND site_id = 1 made by require_once, get_site_option
...
WordPress database error Table 'wordpress_test.wp_users' doesn't exist for query SELECT * FROM wp_users WHERE user_login = 'd87193701cb6b55a91a34b0f049d22e4' made by wp_install, username_exists, get_userdatabylogin, get_user_by
...
WordPress database error Table 'wordpress_test.wp_users' doesn't exist for query INSERT INTO wp_users (user_pass,user_email,user_url,user_nicename,display_name,user_registered,user_login) VALUES ('$P$BGRXqTL2Nqv3AGONWtsOSf9cPRfngW.','205a27b062b5876ffd9a5301166b9710@example.com','','d87193701cb6b55a91a34b0f049d22e4','d87193701cb6b55a91a34b0f049d22e4','2010-06-21 16:19:18','d87193701cb6b55a91a34b0f049d22e4') made by wp_install, wp_create_user, wp_insert_user
WordPress database error Table 'wordpress_test.wp_usermeta' doesn't exist for query SELECT * FROM wp_usermeta WHERE user_id = 96 AND meta_key = 'first_name' made by wp_install, wp_create_user, wp_insert_user, update_usermeta, delete_usermeta
...
...
WordPress database error Table 'wordpress_test.wp_usermeta' doesn't exist for query DELETE FROM wp_usermeta WHERE user_id = 96 AND meta_key = 'last_name' made by wp_install, wp_create_user, wp_insert_user, update_usermeta, delete_usermeta
...
WordPress database error Table 'wordpress_test.wp_usermeta' doesn't exist for query SELECT * FROM wp_usermeta WHERE user_id = 96 AND meta_key = 'admin_color' made by wp_install, wp_create_user, wp_insert_user, update_usermeta
...
WordPress database error Table 'wordpress_test.wp_users' doesn't exist for query SELECT * FROM wp_users WHERE ID = 96 LIMIT 1 made by wp_install, wp_create_user, wp_insert_user, WP_User->WP_User, get_userdata
...
WordPress database error Table 'wordpress_test.wp_usermeta' doesn't exist for query SELECT * FROM wp_usermeta WHERE user_idTest Suite
Test_Clean_Pre
.FF.

Then some of the tests start to run, and when it gets to WPTestActions, I get these errors:

WPTestActions
..........Action Time: 0.06314039 (0.00012628 each)
...
Fatal error: Cannot use object of type Closure as array in C:\wordpress\wordpress-mu\wp-includes\plugin.php on line 680
= 96 AND meta_key = 'default_password_nag' made by wp_install, update_usermeta
WordPress database error Table 'wordpress_test.wp_usermeta' doesn't exist for query INSERT INTO wp_usermeta (user_id,meta_key,meta_value) VALUES ('96','default_password_nag','1') made by wp_install, update_usermeta
WordPress database error Table 'wordpress_test.wp_users' doesn't exist for query SELECT * FROM wp_users WHERE ID = 96 LIMIT 1 made by wp_install, WP_User->WP_User, get_userdata
WordPress database error Table 'wordpress_test.wp_usermeta' doesn't exist for query SELECT * FROM wp_usermeta WHERE user_id = 0 AND meta_key = '' made by wp_install, WP_User->set_role, update_usermeta
WordPress database error Table 'wordpress_test.wp_usermeta' doesn't exist for query INSERT INTO wp_usermeta (user_id,meta_key,meta_value) VALUES ('0','','a:1:{s:13:\"administrator\";b:1;}') made by wp_install, WP_User->set_role, update_usermeta
WordPress database error Table 'wordpress_test.wp_usermeta' doesn't exist for query SELECT * FROM wp_usermeta WHERE user_id = 0 AND meta_key = 'wp_1_user_level' made by wp_install, WP_User->set_role, WP_User->update_user_level_from_caps, update_usermeta
WordPress database error Table 'wordpress_test.wp_usermeta' doesn't exist for query INSERT INTO wp_usermeta (user_id,meta_key,meta_value) VALUES ('0','wp_1_user_level','10') made by wp_install, WP_User->set_role, WP_User->update_user_level_from_caps, update_usermeta
WordPress database error Table 'wordpress_test.wp_users' doesn't exist for query SELECT * FROM wp_users WHERE ID = 96 LIMIT 1 made by wp_install, wp_new_blog_notification, WP_User->WP_User, get_userdata
WordPress database error Table 'wordpress_test.wp_blogs' doesn't exist for query SELECT * from wp_blogs where blog_id=1
PHP Fatal error: Cannot use object of type Closure as array in C:\wordpress\wordpress-mu\wp-includes\plugin.php on line 680

Change History (2)

#1 @dvmorris
8 years ago

  • Cc dvmorris added

#2 @nacin
8 years ago

  • Milestone Unassigned deleted
  • Resolution set to invalid
  • Status changed from new to closed

I would run unit tests against trunk. Not sure if it's been adapted to run multisite yet though.

Better place for this would be our new unit tests Trac, http://unit-tests.trac.wordpress.org/.

Note: See TracTickets for help on using tickets.