Changeset 48220 for trunk/tests/phpunit/tests/ajax/ReplytoComment.php
- Timestamp:
- 06/30/2020 12:41:30 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/ajax/ReplytoComment.php
r48115 r48220 17 17 18 18 /** 19 * A post with at least one comment 19 * A post with at least one comment. 20 20 * 21 21 * @var mixed … … 24 24 25 25 /** 26 * Draft post 26 * Draft post. 27 27 * 28 28 * @var mixed … … 44 44 45 45 /** 46 * Reply as a privilged user (administrator) 47 * Expects test to pass 48 * 49 * @return void 46 * Tests reply as a privileged user (administrator). 47 * 48 * Expects test to pass. 50 49 */ 51 50 public function test_as_admin() { … … 91 90 92 91 /** 93 * Reply as a non-privileged user (subscriber) 94 * Expects test to fail 95 * 96 * @return void 92 * Tests reply as a non-privileged user (subscriber). 93 * 94 * Expects test to fail. 97 95 */ 98 96 public function test_as_subscriber() { … … 121 119 122 120 /** 123 * Reply using a bad nonce 124 * Expects test to fail 125 * 126 * @return void 121 * Tests reply using a bad nonce. 122 * 123 * Expects test to fail. 127 124 */ 128 125 public function test_bad_nonce() { … … 151 148 152 149 /** 153 * Reply to an invalid post 154 * Expects test to fail 155 * 156 * @return void 150 * Tests reply to an invalid post. 151 * 152 * Expects test to fail. 157 153 */ 158 154 public function test_invalid_post() { … … 172 168 173 169 /** 174 * Reply to a draft post 175 * Expects test to fail 176 * 177 * @return void 170 * Tests reply to a draft post. 171 * 172 * Expects test to fail. 178 173 */ 179 174 public function test_with_draft_post() { … … 193 188 194 189 /** 195 * Reply to a post with a simulated database failure 196 * Expects test to fail 190 * Tests reply to a post with a simulated database failure. 191 * 192 * Expects test to fail. 197 193 * 198 194 * @global $wpdb 199 * @return void200 195 */ 201 196 public function test_blocked_comment() { … … 226 221 227 222 /** 228 * Block comments from being saved223 * Blocks comments from being saved. 229 224 * 230 225 * @param string $sql … … 240 235 241 236 /** 242 * Raises WP_Error after Posted a new pre comment237 * Tests blocking a comment from being saved on 'pre_comment_approved'. 243 238 * 244 239 * @ticket 39730 245 * @return void246 240 */ 247 241 public function test_pre_comments_approved() { … … 264 258 265 259 /** 266 * Block comments from being saved 'pre_comment_approved', by returning WP_Error260 * Blocks comments from being saved on 'pre_comment_approved', by returning WP_Error. 267 261 */ 268 262 function _pre_comment_approved_filter( $approved, $commentdata ) {
Note: See TracChangeset
for help on using the changeset viewer.