Methods
1 to 12 of 12
- Tests_Ajax_DeleteComment::_clear_post_action() – Clear the POST actions in between requests
- Tests_Ajax_DeleteComment::_test_as_admin() – Test as a privilged user (administrator) Expects test to pass
- Tests_Ajax_DeleteComment::_test_as_subscriber() – Test as a non-privileged user (subscriber) Expects test to fail
- Tests_Ajax_DeleteComment::_test_double_action() – Test doubling the action (e.g. trash a trashed comment) Expects test to fail
- Tests_Ajax_DeleteComment::_test_with_bad_id() – Test with a bad id Expects test to fail
- Tests_Ajax_DeleteComment::_test_with_bad_nonce() – Test with a bad nonce Expects test to fail
- Tests_Ajax_DeleteComment::test_ajax_comment_trash_actions_as_administrator() – Delete a comment as an administrator (expects success)
- Tests_Ajax_DeleteComment::test_ajax_comment_trash_actions_as_subscriber() – Delete a comment as a subscriber (expects permission denied)
- Tests_Ajax_DeleteComment::test_ajax_trash_comment_bad_nonce() – Delete a comment with a bad nonce
- Tests_Ajax_DeleteComment::test_ajax_trash_comment_no_id() – Delete a comment with no id
- Tests_Ajax_DeleteComment::test_ajax_trash_double_action() – Test trashing an already trashed comment, etc.
- Tests_Ajax_DeleteComment::wpSetUpBeforeClass() – ID of a post.