Wordpress/tests/phpunit/includes
Scott Taylor e70ebea219 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



git-svn-id: https://develop.svn.wordpress.org/trunk@35225 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-16 21:04:12 +00:00
..
bootstrap.php REST API: Introduce baby API to the world. 2015-10-08 02:30:18 +00:00
exceptions.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
factory.php Merge the Responsive Images feature plugin into core, initial commit. See: https://github.com/ResponsiveImagesCG/wp-tevko-responsive-images/ 2015-10-06 04:58:21 +00:00
functions.php During PHPUnit tests, don't autodetect permalink structure during WP installation. 2015-04-16 23:59:01 +00:00
install.php Set $_SERVER['REQUEST_METHOD'] for unit tests. 2015-06-16 00:03:25 +00:00
mock-fs.php Normalize slashes in WP_Filesystem_MockFS::mkdir() and WP_Filesystem_MockFS::locate_parent_node() to avoid an infinite loop on Windows. 2013-11-18 15:32:47 +00:00
mock-image-editor.php Add tests which ensure the wp_editor_set_quality and jpeg_quality filters only apply if they are added before the corresponding WP_Image_Editor is instantiated. 2014-12-15 21:24:21 +00:00
mock-mailer.php Update PHPMailer to 5.2.10 from 5.2.7. 2015-07-08 17:15:02 +00:00
speed-trap-listener.php Unit Tests: add SpeedTrapListener to phpunit/includes and add the config node to phpunit.xml.dist. 2015-10-16 00:27:28 +00:00
spy-rest-server.php REST API: Introduce baby API to the world. 2015-10-08 02:30:18 +00:00
testcase-ajax.php Unit Tests: one $factory to rule them all, and it shall be static. 2015-10-16 21:04:12 +00:00
testcase-canonical.php Unit Tests: one $factory to rule them all, and it shall be static. 2015-10-16 21:04:12 +00:00
testcase-rest-api.php REST API: Introduce baby API to the world. 2015-10-08 02:30:18 +00:00
testcase-xmlrpc.php Unit Tests: one $factory to rule them all, and it shall be static. 2015-10-16 21:04:12 +00:00
testcase.php Unit Tests: one $factory to rule them all, and it shall be static. 2015-10-16 21:04:12 +00:00
trac.php Don't use HTTPS in unit tests if OpenSSL isn't loaded. 2014-02-12 20:39:21 +00:00
utils.php Tests: Introduce WP_UnitTestCase::reset_permalinks(), an attempt to DRY up logic for resetting and restoring default permalinks on setUp() and tearDown(). 2015-10-03 17:14:12 +00:00
wp-profiler.php Remove PHP4 constructors from Unit Tests 2015-07-08 16:04:11 +00:00