Lines:
1 to 61 of 61
<?php // (C) Copyright Bobbing Wide 2016, originally from wordpress.org /* class WP_UnitTestCase */ /* function WP_UnitTestCase::__isset() – */ /* function WP_UnitTestCase::__get() – */ /* function WP_UnitTestCase::factory() – */ /* function WP_UnitTestCase::get_called_class() – */ /* function WP_UnitTestCase::setUpBeforeClass() – */ /* function WP_UnitTestCase::tearDownAfterClass() – */ /* function WP_UnitTestCase::setUp() – */ /* function WP_UnitTestCase::assertPostConditions() – Detect post-test failure conditions. */ /* function WP_UnitTestCase::tearDown() – After a test method runs, reset any state in WordPress the test method might have changed. */ /* function WP_UnitTestCase::clean_up_global_scope() – */ /* function WP_UnitTestCase::reset_post_types() – Unregister existing post types and register defaults. */ /* function WP_UnitTestCase::reset_taxonomies() – Unregister existing taxonomies and register defaults. */ /* function WP_UnitTestCase::reset_post_statuses() – Unregister non-built-in post statuses. */ /* function WP_UnitTestCase::reset__SERVER() – Reset `$_SERVER` variables */ /* function WP_UnitTestCase::_backup_hooks() – Saves the action and filter-related globals so they can be restored later. */ /* function WP_UnitTestCase::_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::flush_cache() – */ /* function WP_UnitTestCase::start_transaction() – */ /* function WP_UnitTestCase::commit_transaction() – Commit the queries in a transaction. Well, don’t actually! */ /* function WP_UnitTestCase::rollback_transaction() – Rollback the queries in the transaction */ /* function WP_UnitTestCase::_create_temporary_tables() – */ /* function WP_UnitTestCase::_drop_temporary_tables() – */ /* function WP_UnitTestCase::get_wp_die_handler() – */ /* function WP_UnitTestCase::wp_die_handler() – */ /* function WP_UnitTestCase::expectDeprecated() – */ /* function WP_UnitTestCase::expectedDeprecated() – */ /* function WP_UnitTestCase::setExpectedDeprecated() – Declare an expected `_deprecated_function()` or `_deprecated_argument()` call from within a test. */ /* function WP_UnitTestCase::setExpectedIncorrectUsage() – Declare an expected `_doing_it_wrong()` call from within a test. */ /* function WP_UnitTestCase::deprecated_function_run() – */ /* function WP_UnitTestCase::doing_it_wrong_run() – */ /* function WP_UnitTestCase::assertWPError() – */ /* function WP_UnitTestCase::assertNotWPError() – */ /* function WP_UnitTestCase::assertEqualFields() – */ /* function WP_UnitTestCase::assertDiscardWhitespace() – */ /* function WP_UnitTestCase::assertEqualSets() – */ /* function WP_UnitTestCase::assertEqualSetsWithIndex() – */ /* function WP_UnitTestCase::go_to() – Modify WordPress’s query internals as if a given URL has been requested. */ /* function WP_UnitTestCase::checkRequirements() – */ /* function WP_UnitTestCase::knownWPBug() – Skips the current test if there is an open WordPress ticket with id $ticket_id */ /* function WP_UnitTestCase::knownUTBug() – Skips the current test if there is an open unit tests ticket with id $ticket_id */ /* function WP_UnitTestCase::knownPluginBug() – Skips the current test if there is an open plugin ticket with id $ticket_id */ /* function WP_UnitTestCase::forceTicket() – */ /* function WP_UnitTestCase::prepareTemplate() – Define constants after including files. */ /* function WP_UnitTestCase::temp_filename() – Returns the name of a temporary file */ /* function WP_UnitTestCase::assertQueryTrue() – Check each of the WP_Query is_* functions/properties against expected boolean value. */ /* function WP_UnitTestCase::unlink() – */ /* function WP_UnitTestCase::rmdir() – */ /* function WP_UnitTestCase::remove_added_uploads() – */ /* function WP_UnitTestCase::files_in_dir() – */ /* function WP_UnitTestCase::scan_user_uploads() – */ /* function WP_UnitTestCase::delete_folders() – */ /* function WP_UnitTestCase::scandir() – */ /* function WP_UnitTestCase::_microtime_to_float() – Helper to Convert a microtime string into a float */ /* function WP_UnitTestCase::delete_user() – Multisite-agnostic way to delete a user from the database. */ /* function WP_UnitTestCase::set_permalink_structure() – Utility method that resets permalinks and flushes rewrites. */ /* function WP_UnitTestCase::_make_attachment() – */View on GitHub