From a2a65a06bdc3cb606f3b0d609c84af6a89cc940d Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Fri, 16 Oct 2015 21:05:25 +0000 Subject: [PATCH] Unit Tests: one `$factory` to rule them all, and it shall be `static`. Using more than one instance of `WP_UnitTest_Factory` causes all kinds of craziness, due to out-of-sync internal generator sequences. Since we want to use `setUpBeforeClass`, we were creating ad hoc instances. To avoid that, we were injecting one `static` instance via Dependency Injection in `wpSetUpBeforeClass`. All tests should really use the `static` instance, so we will remove the instance prop `$factory`. Replace `$this->factory` with `self::$factory` over 2000 times. Rewrite all of the tests that were hard-coding dynamic values. #YOLOFriday Built from https://develop.svn.wordpress.org/trunk@35225 git-svn-id: http://core.svn.wordpress.org/trunk@35191 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/version.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/version.php b/wp-includes/version.php index 11d5b3b257..b019fb9bd0 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-alpha-35224'; +$wp_version = '4.4-alpha-35225'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.