Wordpress/tests
Gary Pendergast 5c4a15d0fc Tests: Disable foreign_key_checks while dropping existing tables.
To ensure a clean run, the test suite drops all tables before installing, by simply looping over the table list and dropping them if they exist. This works well for Core, but may fail when a plugin has created a table with foreign key constraints in a previous test run.

Many plugins choose to base their test suite on the Core setup, so making life easier for them is a plus, even if Core doesn't directly need this change.

Props javorszky.

Fixes #37046.



git-svn-id: https://develop.svn.wordpress.org/trunk@37654 602fd350-edb4-49c9-b593-d223f7449a82
2016-06-08 03:03:16 +00:00
..
phpunit Tests: Disable foreign_key_checks while dropping existing tables. 2016-06-08 03:03:16 +00:00
qunit Customize: Add setting validation model and control notifications to augment setting sanitization. 2016-05-20 21:09:40 +00:00