Lines:
1 to 45 of 45
<?php require_once __DIR__ . '/class-basic-object.php'; /* function tests_get_phpunit_version() – Retrieves PHPUnit runner version. */ /* function tests_reset__SERVER() – Resets various `$_SERVER` variables that can get altered during tests. */ /* function tests_add_filter() – Adds hooks before loading WP. */ /* function _test_filter_build_unique_id() – Generates a unique function ID based on the given arguments. */ /* function _delete_all_data() – Deletes all data from the database. */ /* function _delete_all_posts() – Deletes all posts from the database. */ /* function _wp_die_handler() – Handles the WP die handler by outputting the given values as text. */ /* function _disable_wp_die() – Disables the WP die handler. */ /* function _enable_wp_die() – Enables the WP die handler. */ /* function _wp_die_handler_filter() – Returns the die handler. */ /* function _wp_die_handler_filter_exit() – Returns the die handler. */ /* function _wp_die_handler_txt() – Dies without an exit. */ /* function _wp_die_handler_exit() – Dies with an exit. */ /* function _set_default_permalink_structure_for_tests() – Set a permalink structure. */ /* function _upload_dir_no_subdir() – Helper used with the `upload_dir` filter to remove the /year/month sub directories from the uploads path and URL. */ /* function _upload_dir_https() – Helper used with the `upload_dir` filter to set https upload URL. */ /* function _wp_rest_server_class_filter() – Use the Spy_REST_Server class for the REST server. */ // Skip `setcookie` calls in auth_cookie functions due to warning: // Cannot modify header information - headers already sent by... tests_add_filter( 'send_auth_cookies', '__return_false' ); /* function _unhook_block_registration() – After the init action has been run once, trying to re-register block types can cause _doing_it_wrong warnings. To avoid this, unhook the block registration functions. */ tests_add_filter( 'init', '_unhook_block_registration', 1000 );