Index: tests/phpunit/includes/install.php
===================================================================
--- tests/phpunit/includes/install.php	(revision 37650)
+++ tests/phpunit/includes/install.php	(working copy)
@@ -40,6 +40,7 @@
 
 echo "Installing..." . PHP_EOL;
 
+$wpdb->query( "SET foreign_key_checks = 0" );
 foreach ( $wpdb->tables() as $table => $prefixed_table ) {
 	$wpdb->query( "DROP TABLE IF EXISTS $prefixed_table" );
 }
@@ -51,6 +52,7 @@
 	if ( $multisite )
 		$wpdb->$table = $prefixed_table;
 }
+$wpdb->query( "SET foreign_key_checks = 1" );
 
 // Prefill a permalink structure so that WP doesn't try to determine one itself.
 add_action( 'populate_options', '_set_default_permalink_structure_for_tests' );
