Wordpress/tests/phpunit/includes
Scott Taylor ff4f1bb170 For unit tests that call `wpmu_create_blog()`, Blog factory, or installation code that attempts to clear transients: suppress database errors on `setUp` and restore on `tearDown`.
There are a few places in core that were preventing this from working by explicity setting `$wpdb->suppress_errors` to `false`. Instead, they should inherit the value that existed before errors were suppressed.

This allows Multisite unit tests to run without explosive database errors, and allows `$wpdb->suppress_errors` to be overridden all the way down the chain.

Fixes #26102.


git-svn-id: https://develop.svn.wordpress.org/trunk@26252 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-18 20:44:34 +00:00
..
bootstrap.php Test framework: Update path to multisite.xml. 2013-09-12 21:04:16 +00:00
exceptions.php
factory.php For unit tests that call `wpmu_create_blog()`, Blog factory, or installation code that attempts to clear transients: suppress database errors on `setUp` and restore on `tearDown`. 2013-11-18 20:44:34 +00:00
functions.php
install.php Always clean install in PHPUnit Tests. 2013-11-11 22:14:24 +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 * Avoid notice by making `WP_Image_Editor_Mock::test()` compatible with `WP_Image_Editor::test()`. 2013-09-12 04:40:13 +00:00
mock-mailer.php
testcase-ajax.php Fix several esoteric errors related to AJAX unit tests for comments: 2013-09-14 18:35:43 +00:00
testcase-xmlrpc.php
testcase.php `WP_UnitTestCase::go_to()` tried its best to clean up global space, but ultimately fell short. Because it was blowing away `WP` every time it was called, it was dropping all the query vars that were registered for custom taxonomies and custom post types (ouch). 2013-11-04 22:46:44 +00:00
trac.php
utils.php Remove the Featured Content term filters when running Unit Tests. Set the return value of `wp_get_object_terms()` to a var before passing to `array_shift()` in `test_get_object_terms_types()`, which expects a var to be passed by reference. 2013-11-15 02:32:16 +00:00
wp-profiler.php