Ticket #37046: 37046.patch
File 37046.patch, 732 bytes (added by , 7 years ago) |
---|
-
tests/phpunit/includes/install.php
40 40 41 41 echo "Installing..." . PHP_EOL; 42 42 43 $wpdb->query( "SET foreign_key_checks = 0" ); 43 44 foreach ( $wpdb->tables() as $table => $prefixed_table ) { 44 45 $wpdb->query( "DROP TABLE IF EXISTS $prefixed_table" ); 45 46 } … … 51 52 if ( $multisite ) 52 53 $wpdb->$table = $prefixed_table; 53 54 } 55 $wpdb->query( "SET foreign_key_checks = 1" ); 54 56 55 57 // Prefill a permalink structure so that WP doesn't try to determine one itself. 56 58 add_action( 'populate_options', '_set_default_permalink_structure_for_tests' );