Changeset 48220 for trunk/tests/phpunit/tests/ajax/DimComment.php
- Timestamp:
- 06/30/2020 12:41:30 AM (6 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/ajax/DimComment.php (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/ajax/DimComment.php
r47198 r48220 17 17 18 18 /** 19 * List of comments 19 * List of comments. 20 20 * 21 21 * @var array … … 24 24 25 25 /** 26 * Set up the test fixture26 * Sets up the test fixture. 27 27 */ 28 28 public function setUp() { … … 34 34 35 35 /** 36 * Clear the POST actions in between requests36 * Clears the POST actions in between requests. 37 37 */ 38 38 protected function _clear_post_action() { … … 47 47 48 48 /** 49 * Test as a privilged user (administrator)50 * Expects test to pass51 * 52 * @param mixed $comment Comment object53 * @ return void49 * Tests as a privileged user (administrator). 50 * 51 * Expects test to pass. 52 * 53 * @param WP_Comment $comment Comment object. 54 54 */ 55 55 public function _test_as_admin( $comment ) { … … 108 108 109 109 /** 110 * Test as a non-privileged user (subscriber)111 * Expects test to fail112 * 113 * @param mixed $comment Comment object114 * @ return void110 * Tests as a non-privileged user (subscriber). 111 * 112 * Expects test to fail. 113 * 114 * @param WP_Comment $comment Comment object. 115 115 */ 116 116 public function _test_as_subscriber( $comment ) { … … 136 136 137 137 /** 138 * Test with a bad nonce139 * Expects test to fail140 * 141 * @param mixed $comment Comment object142 * @ return void138 * Tests with a bad nonce. 139 * 140 * Expects test to fail. 141 * 142 * @param WP_Comment $comment Comment object. 143 143 */ 144 144 public function _test_with_bad_nonce( $comment ) { … … 164 164 165 165 /** 166 * Test with a bad id 167 * Expects test to fail 168 * 169 * @return void 166 * Tests with a bad ID. 167 * 168 * Expects test to fail. 170 169 */ 171 170 public function test_with_bad_id() { … … 205 204 206 205 /** 207 * Dim a comment as an administrator (expects success) 208 * 209 * @return void 206 * Dims a comment as an administrator (expects success). 210 207 */ 211 208 public function test_ajax_comment_dim_actions_as_administrator() { … … 216 213 217 214 /** 218 * Dim a comment as a subscriber (expects permission denied) 219 * 220 * @return void 215 * Dims a comment as a subscriber (expects permission denied). 221 216 */ 222 217 public function test_ajax_comment_dim_actions_as_subscriber() { … … 226 221 227 222 /** 228 * Dim a comment with no id 229 * 230 * @return void 223 * Dims a comment with no ID. 231 224 */ 232 225 public function test_ajax_dim_comment_no_id() { … … 236 229 237 230 /** 238 * Dim a comment with a bad nonce 239 * 240 * @return void 231 * Dims a comment with a bad nonce. 241 232 */ 242 233 public function test_ajax_dim_comment_bad_nonce() {
Note: See TracChangeset
for help on using the changeset viewer.