mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-12 19:30:38 +01:00
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:
parent
36610e072b
commit
55e32049e3
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user