Wordpress/tests/phpunit/includes
Boone Gorges 7c79386135 Tests: Use the same incrementor for all fields belonging to a given text fixture.
[35244] changed the way that `WP_UnitTest_Generator_Sequence()` created an
incrementor for object fields (like 'post_name' and 'user_email'), by making
incrementor static across the entire run of the test suite. While this helped
to enforce uniqueness across the tests, it has the side effect of bumping the
incrementor between fields on the same object (so that, eg, the same post might
have `post_name` "post-12" but `post_title` "Post 13". By switching to a
technique that uses the same incrementor for each field belonging to a given
fixture, we conform better to the expectations of developers using
`WP_UnitTest_Factory`.

Fixes #35199.

git-svn-id: https://develop.svn.wordpress.org/trunk@37299 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-22 14:35:52 +00:00
..
factory Tests: Use the same incrementor for all fields belonging to a given text fixture. 2016-04-22 14:35:52 +00:00
bootstrap.php Tests: Allow override of MULTISITE and SUBDOMAIN_INSTALL constants 2016-04-20 16:51:58 +00:00
exceptions.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
factory.php Build/Test Tools: Move class WP_UnitTest_Factory into its own file. 2016-01-27 03:26:15 +00:00
functions.php Remove (or at least reduce) the need to reset common $_SERVER variables before assertions or between tests, by introducing a method which automatically resets them during test setup. 2016-02-26 02:08:47 +00:00
install.php Remove (or at least reduce) the need to reset common $_SERVER variables before assertions or between tests, by introducing a method which automatically resets them during test setup. 2016-02-26 02:08:47 +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 Tests: Add decorators to PHPMailer mock object. 2016-02-20 03:40:49 +00:00
speed-trap-listener.php Unit Tests: Implement addWarning() method in SpeedTrapListener. 2015-12-04 16:40:10 +00:00
spy-rest-server.php REST API: Deliver parameters unadulterated instead of slashed. 2016-04-06 21:01:11 +00:00
testcase-ajax.php Media: Remove an extra quote when sending a link of a media file to the editor. 2016-04-21 21:20:26 +00:00
testcase-canonical.php Tests: Remove some debug that's slipped in at some point. 2016-01-09 06:11:58 +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 XMLRPC: Revert the changes to WP_XMLRPC_UnitTestCase in [35366] as they weren't required. 2015-10-23 04:49:08 +00:00
testcase.php Tests: Ensure that the default wp_die() handler can handle a WP_Error object. 2016-03-23 19:00:38 +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 Introduce publicly_queryable taxonomy argument. 2016-02-13 03:50:37 +00:00
wp-profiler.php Remove PHP4 constructors from Unit Tests 2015-07-08 16:04:11 +00:00