Lines:
1 to 15 of 15
<?php /* class WP_Ajax_UnitTestCase */ /* function WP_Ajax_UnitTestCase::set_up_before_class */ /* function WP_Ajax_UnitTestCase::set_up */ /* function WP_Ajax_UnitTestCase::tear_down */ /* function WP_Ajax_UnitTestCase::logout() – Clear login cookies, unset the current user */ /* function WP_Ajax_UnitTestCase::getDieHandler() – Return our callback handler */ /* function WP_Ajax_UnitTestCase::dieHandler() – Handler for wp_die() Save the output for analysis, stop execution by throwing an exception. */ /* function WP_Ajax_UnitTestCase::_setRole() – Switch between user roles E.g. administrator, editor, author, contributor, subscriber */ /* function WP_Ajax_UnitTestCase::_handleAjax() – Mimic the ajax handling of admin-ajax.php Capture the output via output buffering, and if there is any, store it in $this->_last_response. */