wordpress-develop/tests/phpunit/tests/post
Aaron Jorbin b94dd6a7ec When asserting microtime output as a number, make it a number
microtime is by default a string. Doing a greater then or less than check of that string is a bad idea since it uses the first part (the micro part of microtime) rather then the actual time. This adds a helper to convert microtime output into a float which we can then use to properly compare the output of microtime.

This fixes an intermittent test failure.

fixes #30336



git-svn-id: https://develop.svn.wordpress.org/trunk@30337 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-13 22:03:15 +00:00
..
attachments.php Make sure the $parent argument of wp_insert_attachment() still works as expected after [28579]. 2014-09-15 14:23:31 +00:00
filtering.php Remove failing Unbalanced tags tests 2014-11-08 23:14:28 +00:00
formats.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
getPages.php When asserting microtime output as a number, make it a number 2014-11-13 22:03:15 +00:00
listPages.php Add unit tests for wp_list_pages(). 2014-05-15 01:17:37 +00:00
meta.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
nav-menu.php Change the default orderby value in wp_get_nav_menus() to 'name'. 2014-09-29 15:44:26 +00:00
objects.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
output.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
query.php Remove failing unit test for #27193. 2014-10-21 13:40:27 +00:00
revisions.php This test in post/revisions.php is too misleading and doesn't work as expected since multiple queries can occur before the one that is intended for testing. 2014-07-02 19:56:50 +00:00
slashes.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
template.php Update expected results in wp_link_pages() unit tests after [30030]. 2014-10-27 01:58:17 +00:00
types.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00