• 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/abstract-testcase.php


Lines:

1 to 73 of 73
<?php

require_once dirname( __FILE__ ) . '/factory.php';
require_once dirname( __FILE__ ) . '/trac.php';

/* class WP_UnitTestCase_Base */
/* function WP_UnitTestCase_Base::__isset() – */
/* function WP_UnitTestCase_Base::__get() – */
/* function WP_UnitTestCase_Base::factory() – Fetches the factory object for generating WordPress fixtures. */
/* function WP_UnitTestCase_Base::get_called_class() – Retrieves the name of the class the static method is called in. */
/* function WP_UnitTestCase_Base::setUpBeforeClass() – Runs the routine before setting up all tests. */
/* function WP_UnitTestCase_Base::tearDownAfterClass() – Runs the routine after all tests have been run. */
/* function WP_UnitTestCase_Base::setUp() – Runs the routine before each test is executed. */
/* function WP_UnitTestCase_Base::tearDown() – After a test method runs, reset any state in WordPress the test method might have changed. */
/* function WP_UnitTestCase_Base::clean_up_global_scope() – Cleans the global scope (e.g `$_GET` and `$_POST`). */
/* function WP_UnitTestCase_Base::skipOnAutomatedBranches() – Allow tests to be skipped on some automated runs */
/* function WP_UnitTestCase_Base::skipWithoutMultisite() – Allow tests to be skipped when Multisite is not in use. */
/* function WP_UnitTestCase_Base::skipWithMultisite() – Allow tests to be skipped when Multisite is in use. */
/* function WP_UnitTestCase_Base::reset_post_types() – Unregister existing post types and register defaults. */
/* function WP_UnitTestCase_Base::reset_taxonomies() – Unregister existing taxonomies and register defaults. */
/* function WP_UnitTestCase_Base::reset_post_statuses() – Unregister non-built-in post statuses. */
/* function WP_UnitTestCase_Base::reset__SERVER() – Reset `$_SERVER` variables */
/* function WP_UnitTestCase_Base::_backup_hooks() – Saves the action and filter-related globals so they can be restored later. */
/* function WP_UnitTestCase_Base::_restore_hooks() – Restores the hook-related globals to their state at setUp()
so that future tests aren’t affected by hooks set during this last test. */
/* function WP_UnitTestCase_Base::flush_cache() – Flushes the WordPress object cache. */
/* function WP_UnitTestCase_Base::unregister_all_meta_keys() – Clean up any registered meta keys. */
/* function WP_UnitTestCase_Base::start_transaction() – Starts a database transaction. */
/* function WP_UnitTestCase_Base::commit_transaction() – Commit the queries in a transaction. */
/* function WP_UnitTestCase_Base::_create_temporary_tables() – Replaces the `CREATE TABLE` statement with a `CREATE TEMPORARY TABLE` statement. */
/* function WP_UnitTestCase_Base::_drop_temporary_tables() – Replaces the `DROP TABLE` statement with a `DROP TEMPORARY TABLE` statement. */
/* function WP_UnitTestCase_Base::get_wp_die_handler() – Retrieves the `wp_die()` handler. */
/* function WP_UnitTestCase_Base::wp_die_handler() – Throws an exception when called. */
/* function WP_UnitTestCase_Base::expectDeprecated() – Sets up the expectations for testing a deprecated call. */
/* function WP_UnitTestCase_Base::expectedDeprecated() – Handles a deprecated expectation. */
/* function WP_UnitTestCase_Base::assertPostConditions() – Detect post-test failure conditions. */
/* function WP_UnitTestCase_Base::setExpectedDeprecated() – Declare an expected `_deprecated_function()` or `_deprecated_argument()` call from within a test. */
/* function WP_UnitTestCase_Base::setExpectedIncorrectUsage() – Declare an expected `_doing_it_wrong()` call from within a test. */
/* function WP_UnitTestCase_Base::setExpectedException() – PHPUnit 6+ compatibility shim. */
/* function WP_UnitTestCase_Base::deprecated_function_run() – Adds a deprecated function to the list of caught deprecated calls. */
/* function WP_UnitTestCase_Base::doing_it_wrong_run() – Adds a function called in a wrong way to the list of `_doing_it_wrong()` calls. */
/* function WP_UnitTestCase_Base::assertWPError() – Asserts that the given value is an instance of WP_Error. */
/* function WP_UnitTestCase_Base::assertNotWPError() – Asserts that the given value is not an instance of WP_Error. */
/* function WP_UnitTestCase_Base::assertIXRError() – Asserts that the given value is an instance of IXR_Error. */
/* function WP_UnitTestCase_Base::assertNotIXRError() – Asserts that the given value is not an instance of IXR_Error. */
/* function WP_UnitTestCase_Base::assertEqualFields() – Asserts that the given fields are present in the given object. */
/* function WP_UnitTestCase_Base::assertDiscardWhitespace() – Asserts that two values are equal, with whitespace differences discarded. */
/* function WP_UnitTestCase_Base::assertEqualSets() – Asserts that the contents of two un-keyed, single arrays are equal, without accounting for the order of elements. */
/* function WP_UnitTestCase_Base::assertEqualSetsWithIndex() – Asserts that the contents of two keyed, single arrays are equal, without accounting for the order of elements. */
/* function WP_UnitTestCase_Base::assertNonEmptyMultidimensionalArray() – Asserts that the given variable is a multidimensional array, and that all arrays are non-empty. */
/* function WP_UnitTestCase_Base::go_to() – Sets the global state to as if a given URL has been requested. */
/* function WP_UnitTestCase_Base::checkRequirements() – Allows tests to be skipped on single or multisite installs by using @group annotations. */
/* function WP_UnitTestCase_Base::knownWPBug() – Skips the current test if there is an open Trac ticket associated with it. */
/* function WP_UnitTestCase_Base::knownUTBug() – Skips the current test if there is an open Unit Test Trac ticket associated with it. */
/* function WP_UnitTestCase_Base::knownPluginBug() – Skips the current test if there is an open Plugin Trac ticket associated with it. */
/* function WP_UnitTestCase_Base::forceTicket() – Adds a Trac ticket number to the `$forced_tickets` property. */
/* function WP_UnitTestCase_Base::prepareTemplate() – Custom preparations for the PHPUnit process isolation template. */
/* function WP_UnitTestCase_Base::temp_filename() – Creates a unique temporary file name. */
/* function WP_UnitTestCase_Base::assertQueryTrue() – Checks each of the WP_Query is_* functions/properties against expected boolean value. */
/* function WP_UnitTestCase_Base::unlink() – Selectively deletes a file. */
/* function WP_UnitTestCase_Base::rmdir() – Selectively deletes files from a directory. */
/* function WP_UnitTestCase_Base::remove_added_uploads() – Deletes files added to the `uploads` directory during tests. */
/* function WP_UnitTestCase_Base::files_in_dir() – Returns a list of all files contained inside a directory. */
/* function WP_UnitTestCase_Base::scan_user_uploads() – Returns a list of all files contained inside the `uploads` directory. */
/* function WP_UnitTestCase_Base::delete_folders() – Deletes all directories contained inside a directory. */
/* function WP_UnitTestCase_Base::scandir() – Retrieves all directories contained inside a directory and stores them in the `$matched_dirs` property. Hidden
directories are ignored. */
/* function WP_UnitTestCase_Base::_microtime_to_float() – Converts a microtime string into a float. */
/* function WP_UnitTestCase_Base::delete_user() – Deletes a user from the database in a Multisite-agnostic way. */
/* function WP_UnitTestCase_Base::set_permalink_structure() – Resets permalinks and flushes rewrites. */
/* function WP_UnitTestCase_Base::_make_attachment() – Creates an attachment post from an uploaded file. */
/* function WP_UnitTestCase_Base::update_post_modified() – Updates the modified and modified GMT date of a post in the database. */
 

 View on GitHub

Called by

    Invoked by

      Calls

      Call hooks

      File name: phpunit/includes/abstract-testcase.php
      Plugin ref: WordPress develop tests
      Version: 5.3
      Deprecated?: No
      API Letters: A,I,P,T

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

      Primary Sidebar

      Information

      File name: phpunit/includes/abstract-testcase.php
      Plugin ref: WordPress develop tests
      Version: 5.3
      Deprecated?: No
      API Letters: A,I,P,T

      phpunit/includes

      Footer

      WordPress develop tests WordPress develop tests
      WordPress develop tests a2z
      WordPress 5.3.1
      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