Changeset 38763 for trunk/tests/phpunit/tests/comment.php
- Timestamp:
- 10/09/2016 01:29:04 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/comment.php
r38398 r38763 128 128 $data = array( 129 129 'comment_post_ID' => self::$post_id, 130 'comment_author' => rand_str(),130 'comment_author' => 'Comment Author', 131 131 'comment_author_url' => '', 132 132 'comment_author_email' => '', 133 133 'comment_type' => '', 134 'comment_content' => rand_str(),134 'comment_content' => 'Comment', 135 135 'comment_date' => '2011-01-01 10:00:00', 136 136 'comment_date_gmt' => '2011-01-01 10:00:00', … … 151 151 $data = array( 152 152 'comment_post_ID' => self::$post_id, 153 'comment_author' => rand_str(),153 'comment_author' => 'Comment Author', 154 154 'comment_author_IP' => '192.168.1.1', 155 155 'comment_author_url' => '', 156 156 'comment_author_email' => '', 157 157 'comment_type' => '', 158 'comment_content' => rand_str(),158 'comment_content' => 'Comment', 159 159 ); 160 160 … … 172 172 $data = array( 173 173 'comment_post_ID' => self::$post_id, 174 'comment_author' => rand_str(),174 'comment_author' => 'Comment Author', 175 175 'comment_author_IP' => '', 176 176 'comment_author_url' => '', 177 177 'comment_author_email' => '', 178 178 'comment_type' => '', 179 'comment_content' => rand_str(),179 'comment_content' => 'Comment', 180 180 ); 181 181 … … 193 193 $data = array( 194 194 'comment_post_ID' => self::$post_id, 195 'comment_author' => rand_str(),195 'comment_author' => 'Comment Author', 196 196 'comment_author_IP' => '', 197 197 'comment_author_url' => '', … … 199 199 'comment_agent' => 'Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X; en-us) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53', 200 200 'comment_type' => '', 201 'comment_content' => rand_str(),201 'comment_content' => 'Comment', 202 202 ); 203 203 … … 215 215 $data = array( 216 216 'comment_post_ID' => self::$post_id, 217 'comment_author' => rand_str(),217 'comment_author' => 'Comment Author', 218 218 'comment_author_IP' => '', 219 219 'comment_author_url' => '', … … 221 221 'comment_agent' => 'Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X; en-us) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53 Opera/9.80 (X11; Linux i686; Ubuntu/14.10) Presto/2.12.388 Version/12.16 Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en; rv:1.8.1.4pre) Gecko/20070511 Camino/1.6pre', 222 222 'comment_type' => '', 223 'comment_content' => rand_str(),223 'comment_content' => 'Comment', 224 224 ); 225 225 … … 237 237 $data = array( 238 238 'comment_post_ID' => self::$post_id, 239 'comment_author' => rand_str(),239 'comment_author' => 'Comment Author', 240 240 'comment_author_IP' => '', 241 241 'comment_author_url' => '', … … 243 243 'comment_agent' => '', 244 244 'comment_type' => '', 245 'comment_content' => rand_str(),245 'comment_content' => 'Comment', 246 246 ); 247 247 … … 257 257 $data = array( 258 258 'comment_post_ID' => self::$post_id, 259 'comment_author' => rand_str(),259 'comment_author' => 'Comment Author', 260 260 'comment_author_url' => '', 261 261 'comment_author_email' => '', … … 539 539 $data = array( 540 540 'comment_post_ID' => $post, 541 'comment_author' => rand_str(),541 'comment_author' => 'Comment Author', 542 542 'comment_author_url' => '', 543 543 'comment_author_email' => '', 544 544 'comment_type' => '', 545 'comment_content' => rand_str(),545 'comment_content' => 'Comment', 546 546 ); 547 547 wp_new_comment( $data ); … … 589 589 $data = array( 590 590 'comment_post_ID' => $post, 591 'comment_author' => rand_str(),591 'comment_author' => 'Comment Author', 592 592 'comment_author_url' => '', 593 593 'comment_author_email' => '', 594 594 'comment_type' => '', 595 'comment_content' => rand_str(),595 'comment_content' => 'Comment', 596 596 ); 597 597 wp_new_comment( $data ); … … 639 639 $default_data = array( 640 640 'comment_post_ID' => self::$post_id, 641 'comment_author' => rand_str(),641 'comment_author' => 'Comment Author', 642 642 'comment_author_IP' => '192.168.0.1', 643 643 'comment_agent' => 'WRONG_AGENT', … … 645 645 'comment_author_email' => '', 646 646 'comment_type' => '', 647 'comment_content' => rand_str(),647 'comment_content' => 'Comment', 648 648 ); 649 649
Note: See TracChangeset
for help on using the changeset viewer.