Property | Type | Description | |
---|---|---|---|
$backupGlobals | |||
$caught_deprecated | |||
$caught_doing_it_wrong | |||
$expected_deprecated | |||
$expected_doing_it_wrong | |||
$forced_tickets | |||
$hooks_saved | |||
$ignore_files |
Method | Description | |
---|---|---|
__get ( $name ) | ||
__isset ( $name ) | ||
_create_temporary_tables ( $query ) | ||
_drop_temporary_tables ( $query ) | ||
_make_attachment ( $upload, $parent_post_id ) | ||
assertDiscardWhitespace ( $expected, $actual ) | ||
assertEqualFields ( $object, $fields ) | ||
assertEqualSets ( $expected, $actual ) | ||
assertEqualSetsWithIndex ( $expected, $actual ) | ||
assertNotWPError ( $actual, $message = '' ) | ||
assertQueryTrue ( ) | Check each of the WP_Query is_* functions/properties against expected boolean value. | |
assertWPError ( $actual, $message = '' ) | ||
clean_up_global_scope ( ) | ||
commit_transaction ( ) | Commit the queries in a transaction. | |
delete_folders ( $path ) | ||
delete_user ( $user_id ) | Multisite-agnostic way to delete a user from the database. | |
deprecated_function_run ( $function ) | ||
doing_it_wrong_run ( $function ) | ||
expectDeprecated ( ) | ||
expectedDeprecated ( ) | ||
files_in_dir ( $dir ) | ||
flush_cache ( ) | ||
forceTicket ( $ticket ) | ||
get_called_class ( ) | ||
get_wp_die_handler ( $handler ) | ||
go_to ( $url ) | ||
knownPluginBug ( $ticket_id ) | Skips the current test if there is an open plugin ticket with id $ticket_id | |
knownUTBug ( $ticket_id ) | Skips the current test if there is an open unit tests ticket with id $ticket_id | |
knownWPBug ( $ticket_id ) | Skips the current test if there is an open WordPress ticket with id $ticket_id | |
prepareTemplate ( Text_Template $template ) | Define constants after including files. | |
queries ( ) : |
Returns the WPQueries module instance. | |
remove_added_uploads ( ) | ||
rmdir ( $path ) | ||
scan_user_uploads ( ) | ||
scandir ( $dir ) | ||
setExpectedDeprecated ( string $deprecated ) | Declare an expected _deprecated_function() or _deprecated_argument() call from within a test. | |
setExpectedIncorrectUsage ( $doing_it_wrong ) | Declare an expected _doing_it_wrong() call from within a test. | |
setUp ( ) | ||
setUpBeforeClass ( ) | ||
set_permalink_structure ( string $structure = '' ) | Utility method that resets permalinks and flushes rewrites. | |
start_transaction ( ) | ||
tearDown ( ) | ||
tearDownAfterClass ( ) | ||
temp_filename ( ) | Returns the name of a temporary file | |
unlink ( $file ) | ||
wp_die_handler ( $message ) |
Method | Description | |
---|---|---|
_backup_hooks ( ) : void | Saves the action and filter-related globals so they can be restored later. | |
_microtime_to_float ( $microtime ) | Helper to Convert a microtime string into a float | |
_restore_hooks ( ) : void | Restores the hook-related globals to their state at setUp() so that future tests aren't affected by hooks set during this last test. | |
assertPostConditions ( ) | Detect post-test failure conditions. | |
checkRequirements ( ) | ||
factory ( ) | ||
reset_post_statuses ( ) | Unregister non-built-in post statuses. | |
reset_post_types ( ) | Unregister existing post types and register defaults. | |
reset_taxonomies ( ) | Unregister existing taxonomies and register defaults. |
protected _backup_hooks ( ) : void | ||
return | void |
protected _microtime_to_float ( $microtime ) |
protected _restore_hooks ( ) : void | ||
return | void |
protected assertPostConditions ( ) |
public assertQueryTrue ( ) |
public static commit_transaction ( ) |
public static delete_user ( $user_id ) |
public knownPluginBug ( $ticket_id ) |
public knownUTBug ( $ticket_id ) |
public knownWPBug ( $ticket_id ) |
public prepareTemplate ( Text_Template $template ) | ||
$template | Text_Template |
public queries ( ) : |
||
return |
protected reset_post_statuses ( ) |
protected reset_post_types ( ) |
protected reset_taxonomies ( ) |
public setExpectedDeprecated ( string $deprecated ) | ||
$deprecated | string | Name of the function, method, class, or argument that is deprecated. Must match first parameter of the `_deprecated_function()` or `_deprecated_argument()` call. |
public setExpectedIncorrectUsage ( $doing_it_wrong ) |
public set_permalink_structure ( string $structure = '' ) | ||
$structure | string | Optional. Permalink structure to set. Default empty. |