In PHPUnit test classes, parent::tearDown() should be the last thing done in tearDown() methods.

`WP_UnitTestCase::tearDown()` restores the test environment to the default
conditions, including rolling back the MySQL transaction that the test takes
place in, resetting globals, and unhooking test-specific filters. As such, all
teardown routines for specific tests should happen before the parent class's
`tearDown()` method is called. Failure to do so can cause database locks on
certain configurations, among other problems.

See #31537.
Built from https://develop.svn.wordpress.org/trunk@31622


git-svn-id: http://core.svn.wordpress.org/trunk@31603 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Boone Gorges 2015-03-05 13:15:25 +00:00
parent 36610e072b
commit 55e32049e3

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.2-alpha-31621';
$wp_version = '4.2-alpha-31622';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.