Changeset 48220 for trunk/tests/phpunit/tests/ajax/GetComments.php
- Timestamp:
- 06/30/2020 12:41:30 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/ajax/GetComments.php
r47198 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 * A post with no comments 26 * A post with no comments. 27 27 * 28 28 * @var mixed … … 39 39 40 40 /** 41 * Get comments as a privilged user (administrator) 42 * Expects test to pass 41 * Gets comments as a privileged user (administrator). 43 42 * 44 * @return void43 * Expects test to pass. 45 44 */ 46 45 public function test_as_admin() { … … 77 76 78 77 /** 79 * Get comments as a non-privileged user (subscriber) 80 * Expects test to fail 78 * Gets comments as a non-privileged user (subscriber). 81 79 * 82 * @return void80 * Expects test to fail. 83 81 */ 84 82 public function test_as_subscriber() { … … 98 96 99 97 /** 100 * Get comments with a bad nonce 101 * Expects test to fail 98 * Gets comments with a bad nonce. 102 99 * 103 * @return void100 * Expects test to fail. 104 101 */ 105 102 public function test_bad_nonce() { … … 119 116 120 117 /** 121 * Get comments for an invalid post 122 * Bad post IDs are set to 0, this should return valid XML 118 * Gets comments for an invalid post. 123 119 * 124 * @return void120 * Bad post IDs are set to 0, this should return valid XML. 125 121 */ 126 122 public function test_invalid_post() { … … 140 136 141 137 /** 142 * Get comments for an invalid post 143 * Bad post IDs are set to 0, this should return valid XML 144 * 145 * @return void 138 * Gets comments for a post with no comments. 146 139 */ 147 140 public function test_post_with_no_comments() {
Note: See TracChangeset
for help on using the changeset viewer.