Lines:
1 to 27 of 27
<?php /** * Admin Ajax functions to be tested. */ require_once ABSPATH . 'wp-admin/includes/ajax-actions.php'; /* class Tests_Ajax_DeleteComment */ /* function Tests_Ajax_DeleteComment::wpSetUpBeforeClass() – ID of a post. */ /* function Tests_Ajax_DeleteComment::_clear_post_action() – Clear the POST actions in between requests */ /* function Tests_Ajax_DeleteComment::_test_as_admin() – Test as a privilged user (administrator) Expects test to pass */ /* function Tests_Ajax_DeleteComment::_test_as_subscriber() – Test as a non-privileged user (subscriber) Expects test to fail */ /* function Tests_Ajax_DeleteComment::_test_with_bad_nonce() – Test with a bad nonce Expects test to fail */ /* function Tests_Ajax_DeleteComment::_test_with_bad_id() – Test with a bad id Expects test to fail */ /* function Tests_Ajax_DeleteComment::_test_double_action() – Test doubling the action (e.g. trash a trashed comment) Expects test to fail */ /* function Tests_Ajax_DeleteComment::test_ajax_comment_trash_actions_as_administrator() – Delete a comment as an administrator (expects success) */ /* function Tests_Ajax_DeleteComment::test_ajax_comment_trash_actions_as_subscriber() – Delete a comment as a subscriber (expects permission denied) */ /* function Tests_Ajax_DeleteComment::test_ajax_trash_comment_no_id() – Delete a comment with no id */ /* function Tests_Ajax_DeleteComment::test_ajax_trash_comment_bad_nonce() – Delete a comment with a bad nonce */ /* function Tests_Ajax_DeleteComment::test_ajax_trash_double_action() – Test trashing an already trashed comment, etc. */