• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
WordPress develop tests

WordPress develop tests

WordPress develop tests a2z

  • Home
  • Plugins
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / Files / phpunit/includes/functions.php


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 );
 

 View on GitHub

Called by

    Invoked by

      Calls

      1 to 1 of 1
      • tests_add_filter() – Adds hooks before loading WP.

      Call hooks

      File name: phpunit/includes/functions.php
      Plugin ref: WordPress develop tests
      Version: 5.3
      Deprecated?: No
      API Letters: F,I,P

      Published: 26th November 2019 | Last updated: 26th November 2019

      Primary Sidebar

      Information

      File name: phpunit/includes/functions.php
      Plugin ref: WordPress develop tests
      Version: 5.3
      Deprecated?: No
      API Letters: F,I,P

      phpunit/includes

      Footer

      WordPress develop tests WordPress develop tests
      WordPress develop tests a2z
      WordPress 5.3
      WordPress a2z
      WordPress core a2z
      Genesis Theme Framework a2z
      Jetpack a2z
      WordPress develop tests
      Easy Digital Downloads a2z
      WooCommerce a2z
      Yoast SEO a2z
      WordPress Blocks

      Site:  develop.wp-a2z.org
      © Copyright WordPress develop tests 2014-2019. All rights reserved.


      Website designed and developed by Herb Miller
      Proudly powered by WordPress and oik plugins

      • Home
      • Blog
      • Sitemap
      • Sites