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_ReplytoComment */ /* function Tests_Ajax_ReplytoComment::wpSetUpBeforeClass() – Draft post */ /* function Tests_Ajax_ReplytoComment::tear_down */ /* function Tests_Ajax_ReplytoComment::test_as_admin() – Reply as a privilged user (administrator) Expects test to pass */ /* function Tests_Ajax_ReplytoComment::test_as_subscriber() – Reply as a non-privileged user (subscriber) Expects test to fail */ /* function Tests_Ajax_ReplytoComment::test_bad_nonce() – Reply using a bad nonce Expects test to fail */ /* function Tests_Ajax_ReplytoComment::test_invalid_post() – Reply to an invalid post Expects test to fail */ /* function Tests_Ajax_ReplytoComment::test_with_draft_post() – Reply to a draft post Expects test to fail */ /* function Tests_Ajax_ReplytoComment::test_blocked_comment() – Reply to a post with a simulated database failure Expects test to fail */ /* function Tests_Ajax_ReplytoComment::_block_comments() – Block comments from being saved */ /* function Tests_Ajax_ReplytoComment::test_pre_comments_approved() – Raises WP_Error after Posted a new pre comment */ /* function Tests_Ajax_ReplytoComment::_pre_comment_approved_filter() – Block comments from being saved ‘pre_comment_approved’, by returning WP_Error */