Changeset 42343 for trunk/tests/phpunit/tests/ajax/GetComments.php
- Timestamp:
- 11/30/2017 11:09:33 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/ajax/GetComments.php
r38398 r42343 18 18 /** 19 19 * A post with at least one comment 20 * 20 21 * @var mixed 21 22 */ … … 24 25 /** 25 26 * A post with no comments 27 * 26 28 * @var mixed 27 29 */ … … 31 33 32 34 public static function wpSetUpBeforeClass( $factory ) { 33 self::$comment_post = $factory->post->create_and_get();34 self::$comment_ids = $factory->comment->create_post_comments( self::$comment_post->ID, 5 );35 self::$comment_post = $factory->post->create_and_get(); 36 self::$comment_ids = $factory->comment->create_post_comments( self::$comment_post->ID, 5 ); 35 37 self::$no_comment_post = $factory->post->create_and_get(); 36 38 } … … 39 41 * Get comments as a privilged user (administrator) 40 42 * Expects test to pass 43 * 41 44 * @return void 42 45 */ … … 76 79 * Get comments as a non-privileged user (subscriber) 77 80 * Expects test to fail 81 * 78 82 * @return void 79 83 */ … … 96 100 * Get comments with a bad nonce 97 101 * Expects test to fail 102 * 98 103 * @return void 99 104 */ … … 116 121 * Get comments for an invalid post 117 122 * Bad post IDs are set to 0, this should return valid XML 123 * 118 124 * @return void 119 125 */ … … 136 142 * Get comments for an invalid post 137 143 * Bad post IDs are set to 0, this should return valid XML 144 * 138 145 * @return void 139 146 */
Note: See TracChangeset
for help on using the changeset viewer.