Changeset 45424 for trunk/tests/phpunit/tests/comment/commentsTemplate.php
- Timestamp:
- 05/26/2019 12:11:37 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/comment/commentsTemplate.php
r44659 r45424 18 18 'comment_post_ID' => $p, 19 19 'comment_content' => '1', 20 'comment_date_gmt' => date( 'Y-m-d H:i:s', $now - 100 ),21 ) 22 ); 23 $comment_2 = self::factory()->comment->create( 24 array( 25 'comment_post_ID' => $p, 26 'comment_content' => '2', 27 'comment_date_gmt' => date( 'Y-m-d H:i:s', $now - 200 ),20 'comment_date_gmt' => gmdate( 'Y-m-d H:i:s', $now - 100 ), 21 ) 22 ); 23 $comment_2 = self::factory()->comment->create( 24 array( 25 'comment_post_ID' => $p, 26 'comment_content' => '2', 27 'comment_date_gmt' => gmdate( 'Y-m-d H:i:s', $now - 200 ), 28 28 ) 29 29 ); … … 52 52 'comment_post_ID' => $p, 53 53 'comment_content' => '1', 54 'comment_date_gmt' => date( 'Y-m-d H:i:s', $now - 100 ),55 ) 56 ); 57 $comment_2 = self::factory()->comment->create( 58 array( 59 'comment_post_ID' => $p, 60 'comment_content' => '2', 61 'comment_date_gmt' => date( 'Y-m-d H:i:s', $now - 200 ),54 'comment_date_gmt' => gmdate( 'Y-m-d H:i:s', $now - 100 ), 55 ) 56 ); 57 $comment_2 = self::factory()->comment->create( 58 array( 59 'comment_post_ID' => $p, 60 'comment_content' => '2', 61 'comment_date_gmt' => gmdate( 'Y-m-d H:i:s', $now - 200 ), 62 62 ) 63 63 ); … … 86 86 'comment_post_ID' => $p, 87 87 'comment_content' => '1', 88 'comment_date_gmt' => date( 'Y-m-d H:i:s', $now - 100 ),89 ) 90 ); 91 $comment_2 = self::factory()->comment->create( 92 array( 93 'comment_post_ID' => $p, 94 'comment_content' => '2', 95 'comment_date_gmt' => date( 'Y-m-d H:i:s', $now - 200 ),88 'comment_date_gmt' => gmdate( 'Y-m-d H:i:s', $now - 100 ), 89 ) 90 ); 91 $comment_2 = self::factory()->comment->create( 92 array( 93 'comment_post_ID' => $p, 94 'comment_content' => '2', 95 'comment_date_gmt' => gmdate( 'Y-m-d H:i:s', $now - 200 ), 96 96 ) 97 97 ); … … 120 120 'comment_post_ID' => $p, 121 121 'comment_content' => '1', 122 'comment_date_gmt' => date( 'Y-m-d H:i:s', $now - 100 ),123 ) 124 ); 125 $comment_2 = self::factory()->comment->create( 126 array( 127 'comment_post_ID' => $p, 128 'comment_content' => '2', 129 'comment_date_gmt' => date( 'Y-m-d H:i:s', $now - 200 ),122 'comment_date_gmt' => gmdate( 'Y-m-d H:i:s', $now - 100 ), 123 ) 124 ); 125 $comment_2 = self::factory()->comment->create( 126 array( 127 'comment_post_ID' => $p, 128 'comment_content' => '2', 129 'comment_date_gmt' => gmdate( 'Y-m-d H:i:s', $now - 200 ), 130 130 ) 131 131 ); … … 154 154 'comment_post_ID' => $p, 155 155 'comment_content' => '1', 156 'comment_date_gmt' => date( 'Y-m-d H:i:s', $now - 100 ),157 ) 158 ); 159 $comment_2 = self::factory()->comment->create( 160 array( 161 'comment_post_ID' => $p, 162 'comment_content' => '2', 163 'comment_date_gmt' => date( 'Y-m-d H:i:s', $now - 200 ),164 ) 165 ); 166 $comment_3 = self::factory()->comment->create( 167 array( 168 'comment_post_ID' => $p, 169 'comment_content' => '3', 170 'comment_date_gmt' => date( 'Y-m-d H:i:s', $now - 300 ),156 'comment_date_gmt' => gmdate( 'Y-m-d H:i:s', $now - 100 ), 157 ) 158 ); 159 $comment_2 = self::factory()->comment->create( 160 array( 161 'comment_post_ID' => $p, 162 'comment_content' => '2', 163 'comment_date_gmt' => gmdate( 'Y-m-d H:i:s', $now - 200 ), 164 ) 165 ); 166 $comment_3 = self::factory()->comment->create( 167 array( 168 'comment_post_ID' => $p, 169 'comment_content' => '3', 170 'comment_date_gmt' => gmdate( 'Y-m-d H:i:s', $now - 300 ), 171 171 ) 172 172 ); … … 175 175 'comment_post_ID' => $p, 176 176 'comment_content' => '4', 177 'comment_date_gmt' => date( 'Y-m-d H:i:s', $now - 400 ),177 'comment_date_gmt' => gmdate( 'Y-m-d H:i:s', $now - 400 ), 178 178 ) 179 179 ); … … 182 182 'comment_post_ID' => $p, 183 183 'comment_content' => '3', 184 'comment_date_gmt' => date( 'Y-m-d H:i:s', $now - 500 ),184 'comment_date_gmt' => gmdate( 'Y-m-d H:i:s', $now - 500 ), 185 185 ) 186 186 ); … … 189 189 'comment_post_ID' => $p, 190 190 'comment_content' => '4', 191 'comment_date_gmt' => date( 'Y-m-d H:i:s', $now - 600 ),191 'comment_date_gmt' => gmdate( 'Y-m-d H:i:s', $now - 600 ), 192 192 ) 193 193 ); … … 225 225 'comment_post_ID' => $p, 226 226 'comment_content' => '1', 227 'comment_date_gmt' => date( 'Y-m-d H:i:s', $now - 100 ),228 ) 229 ); 230 $comment_2 = self::factory()->comment->create( 231 array( 232 'comment_post_ID' => $p, 233 'comment_content' => '2', 234 'comment_date_gmt' => date( 'Y-m-d H:i:s', $now - 200 ),235 ) 236 ); 237 $comment_3 = self::factory()->comment->create( 238 array( 239 'comment_post_ID' => $p, 240 'comment_content' => '3', 241 'comment_date_gmt' => date( 'Y-m-d H:i:s', $now - 300 ),227 'comment_date_gmt' => gmdate( 'Y-m-d H:i:s', $now - 100 ), 228 ) 229 ); 230 $comment_2 = self::factory()->comment->create( 231 array( 232 'comment_post_ID' => $p, 233 'comment_content' => '2', 234 'comment_date_gmt' => gmdate( 'Y-m-d H:i:s', $now - 200 ), 235 ) 236 ); 237 $comment_3 = self::factory()->comment->create( 238 array( 239 'comment_post_ID' => $p, 240 'comment_content' => '3', 241 'comment_date_gmt' => gmdate( 'Y-m-d H:i:s', $now - 300 ), 242 242 ) 243 243 ); … … 246 246 'comment_post_ID' => $p, 247 247 'comment_content' => '4', 248 'comment_date_gmt' => date( 'Y-m-d H:i:s', $now - 400 ),248 'comment_date_gmt' => gmdate( 'Y-m-d H:i:s', $now - 400 ), 249 249 ) 250 250 ); … … 253 253 'comment_post_ID' => $p, 254 254 'comment_content' => '3', 255 'comment_date_gmt' => date( 'Y-m-d H:i:s', $now - 500 ),255 'comment_date_gmt' => gmdate( 'Y-m-d H:i:s', $now - 500 ), 256 256 ) 257 257 ); … … 260 260 'comment_post_ID' => $p, 261 261 'comment_content' => '4', 262 'comment_date_gmt' => date( 'Y-m-d H:i:s', $now - 600 ),262 'comment_date_gmt' => gmdate( 'Y-m-d H:i:s', $now - 600 ), 263 263 ) 264 264 ); … … 296 296 'comment_post_ID' => $p, 297 297 'comment_content' => '1', 298 'comment_date_gmt' => date( 'Y-m-d H:i:s', $now - 100 ),299 ) 300 ); 301 $comment_2 = self::factory()->comment->create( 302 array( 303 'comment_post_ID' => $p, 304 'comment_content' => '2', 305 'comment_date_gmt' => date( 'Y-m-d H:i:s', $now - 200 ),306 ) 307 ); 308 $comment_3 = self::factory()->comment->create( 309 array( 310 'comment_post_ID' => $p, 311 'comment_content' => '3', 312 'comment_date_gmt' => date( 'Y-m-d H:i:s', $now - 300 ),298 'comment_date_gmt' => gmdate( 'Y-m-d H:i:s', $now - 100 ), 299 ) 300 ); 301 $comment_2 = self::factory()->comment->create( 302 array( 303 'comment_post_ID' => $p, 304 'comment_content' => '2', 305 'comment_date_gmt' => gmdate( 'Y-m-d H:i:s', $now - 200 ), 306 ) 307 ); 308 $comment_3 = self::factory()->comment->create( 309 array( 310 'comment_post_ID' => $p, 311 'comment_content' => '3', 312 'comment_date_gmt' => gmdate( 'Y-m-d H:i:s', $now - 300 ), 313 313 ) 314 314 ); … … 317 317 'comment_post_ID' => $p, 318 318 'comment_content' => '4', 319 'comment_date_gmt' => date( 'Y-m-d H:i:s', $now - 400 ),319 'comment_date_gmt' => gmdate( 'Y-m-d H:i:s', $now - 400 ), 320 320 ) 321 321 ); … … 353 353 'comment_post_ID' => $p, 354 354 'comment_content' => '1', 355 'comment_date_gmt' => date( 'Y-m-d H:i:s', $now - 100 ),356 ) 357 ); 358 $comment_2 = self::factory()->comment->create( 359 array( 360 'comment_post_ID' => $p, 361 'comment_content' => '2', 362 'comment_date_gmt' => date( 'Y-m-d H:i:s', $now - 200 ),363 ) 364 ); 365 $comment_3 = self::factory()->comment->create( 366 array( 367 'comment_post_ID' => $p, 368 'comment_content' => '3', 369 'comment_date_gmt' => date( 'Y-m-d H:i:s', $now - 300 ),355 'comment_date_gmt' => gmdate( 'Y-m-d H:i:s', $now - 100 ), 356 ) 357 ); 358 $comment_2 = self::factory()->comment->create( 359 array( 360 'comment_post_ID' => $p, 361 'comment_content' => '2', 362 'comment_date_gmt' => gmdate( 'Y-m-d H:i:s', $now - 200 ), 363 ) 364 ); 365 $comment_3 = self::factory()->comment->create( 366 array( 367 'comment_post_ID' => $p, 368 'comment_content' => '3', 369 'comment_date_gmt' => gmdate( 'Y-m-d H:i:s', $now - 300 ), 370 370 ) 371 371 ); … … 374 374 'comment_post_ID' => $p, 375 375 'comment_content' => '4', 376 'comment_date_gmt' => date( 'Y-m-d H:i:s', $now - 400 ),376 'comment_date_gmt' => gmdate( 'Y-m-d H:i:s', $now - 400 ), 377 377 ) 378 378 ); … … 412 412 'comment_post_ID' => $p, 413 413 'comment_content' => '1', 414 'comment_date_gmt' => date( 'Y-m-d H:i:s', $now - 100 ),415 ) 416 ); 417 $comment_2 = self::factory()->comment->create( 418 array( 419 'comment_post_ID' => $p, 420 'comment_content' => '2', 421 'comment_date_gmt' => date( 'Y-m-d H:i:s', $now - 200 ),422 ) 423 ); 424 $comment_3 = self::factory()->comment->create( 425 array( 426 'comment_post_ID' => $p, 427 'comment_content' => '3', 428 'comment_date_gmt' => date( 'Y-m-d H:i:s', $now - 300 ),414 'comment_date_gmt' => gmdate( 'Y-m-d H:i:s', $now - 100 ), 415 ) 416 ); 417 $comment_2 = self::factory()->comment->create( 418 array( 419 'comment_post_ID' => $p, 420 'comment_content' => '2', 421 'comment_date_gmt' => gmdate( 'Y-m-d H:i:s', $now - 200 ), 422 ) 423 ); 424 $comment_3 = self::factory()->comment->create( 425 array( 426 'comment_post_ID' => $p, 427 'comment_content' => '3', 428 'comment_date_gmt' => gmdate( 'Y-m-d H:i:s', $now - 300 ), 429 429 ) 430 430 ); … … 464 464 'comment_post_ID' => $p, 465 465 'comment_content' => '1', 466 'comment_date_gmt' => date( 'Y-m-d H:i:s', $now - 100 ),467 ) 468 ); 469 $comment_2 = self::factory()->comment->create( 470 array( 471 'comment_post_ID' => $p, 472 'comment_content' => '2', 473 'comment_date_gmt' => date( 'Y-m-d H:i:s', $now - 200 ),474 ) 475 ); 476 $comment_3 = self::factory()->comment->create( 477 array( 478 'comment_post_ID' => $p, 479 'comment_content' => '3', 480 'comment_date_gmt' => date( 'Y-m-d H:i:s', $now - 300 ),466 'comment_date_gmt' => gmdate( 'Y-m-d H:i:s', $now - 100 ), 467 ) 468 ); 469 $comment_2 = self::factory()->comment->create( 470 array( 471 'comment_post_ID' => $p, 472 'comment_content' => '2', 473 'comment_date_gmt' => gmdate( 'Y-m-d H:i:s', $now - 200 ), 474 ) 475 ); 476 $comment_3 = self::factory()->comment->create( 477 array( 478 'comment_post_ID' => $p, 479 'comment_content' => '3', 480 'comment_date_gmt' => gmdate( 'Y-m-d H:i:s', $now - 300 ), 481 481 ) 482 482 ); … … 514 514 'comment_post_ID' => $p, 515 515 'comment_content' => '1', 516 'comment_date_gmt' => date( 'Y-m-d H:i:s', $now - 100 ),517 ) 518 ); 519 $comment_2 = self::factory()->comment->create( 520 array( 521 'comment_post_ID' => $p, 522 'comment_content' => '2', 523 'comment_date_gmt' => date( 'Y-m-d H:i:s', $now - 200 ),524 ) 525 ); 526 $comment_3 = self::factory()->comment->create( 527 array( 528 'comment_post_ID' => $p, 529 'comment_content' => '3', 530 'comment_date_gmt' => date( 'Y-m-d H:i:s', $now - 300 ),516 'comment_date_gmt' => gmdate( 'Y-m-d H:i:s', $now - 100 ), 517 ) 518 ); 519 $comment_2 = self::factory()->comment->create( 520 array( 521 'comment_post_ID' => $p, 522 'comment_content' => '2', 523 'comment_date_gmt' => gmdate( 'Y-m-d H:i:s', $now - 200 ), 524 ) 525 ); 526 $comment_3 = self::factory()->comment->create( 527 array( 528 'comment_post_ID' => $p, 529 'comment_content' => '3', 530 'comment_date_gmt' => gmdate( 'Y-m-d H:i:s', $now - 300 ), 531 531 ) 532 532 ); … … 535 535 'comment_post_ID' => $p, 536 536 'comment_content' => '4', 537 'comment_date_gmt' => date( 'Y-m-d H:i:s', $now - 400 ),537 'comment_date_gmt' => gmdate( 'Y-m-d H:i:s', $now - 400 ), 538 538 ) 539 539 ); … … 593 593 'comment_post_ID' => $p, 594 594 'comment_content' => '1', 595 'comment_date_gmt' => date( 'Y-m-d H:i:s', $now - 100 ),596 ) 597 ); 598 $comment_2 = self::factory()->comment->create( 599 array( 600 'comment_post_ID' => $p, 601 'comment_content' => '2', 602 'comment_date_gmt' => date( 'Y-m-d H:i:s', $now - 200 ),603 ) 604 ); 605 $comment_3 = self::factory()->comment->create( 606 array( 607 'comment_post_ID' => $p, 608 'comment_content' => '3', 609 'comment_date_gmt' => date( 'Y-m-d H:i:s', $now - 300 ),595 'comment_date_gmt' => gmdate( 'Y-m-d H:i:s', $now - 100 ), 596 ) 597 ); 598 $comment_2 = self::factory()->comment->create( 599 array( 600 'comment_post_ID' => $p, 601 'comment_content' => '2', 602 'comment_date_gmt' => gmdate( 'Y-m-d H:i:s', $now - 200 ), 603 ) 604 ); 605 $comment_3 = self::factory()->comment->create( 606 array( 607 'comment_post_ID' => $p, 608 'comment_content' => '3', 609 'comment_date_gmt' => gmdate( 'Y-m-d H:i:s', $now - 300 ), 610 610 ) 611 611 ); … … 614 614 'comment_post_ID' => $p, 615 615 'comment_content' => '4', 616 'comment_date_gmt' => date( 'Y-m-d H:i:s', $now - 400 ),616 'comment_date_gmt' => gmdate( 'Y-m-d H:i:s', $now - 400 ), 617 617 ) 618 618 ); … … 621 621 'comment_post_ID' => $p, 622 622 'comment_content' => '4', 623 'comment_date_gmt' => date( 'Y-m-d H:i:s', $now - 500 ),623 'comment_date_gmt' => gmdate( 'Y-m-d H:i:s', $now - 500 ), 624 624 ) 625 625 ); … … 628 628 'comment_post_ID' => $p, 629 629 'comment_content' => '4', 630 'comment_date_gmt' => date( 'Y-m-d H:i:s', $now - 600 ),630 'comment_date_gmt' => gmdate( 'Y-m-d H:i:s', $now - 600 ), 631 631 ) 632 632 ); … … 707 707 'comment_content' => '1', 708 708 'comment_approved' => '0', 709 'comment_date_gmt' => date( 'Y-m-d H:i:s', $now - 100 ),709 'comment_date_gmt' => gmdate( 'Y-m-d H:i:s', $now - 100 ), 710 710 ) 711 711 ); … … 715 715 'comment_content' => '2', 716 716 'comment_approved' => '0', 717 'comment_date_gmt' => date( 'Y-m-d H:i:s', $now - 200 ),717 'comment_date_gmt' => gmdate( 'Y-m-d H:i:s', $now - 200 ), 718 718 ) 719 719 ); … … 723 723 'comment_content' => '3', 724 724 'comment_approved' => '0', 725 'comment_date_gmt' => date( 'Y-m-d H:i:s', $now - 300 ),725 'comment_date_gmt' => gmdate( 'Y-m-d H:i:s', $now - 300 ), 726 726 ) 727 727 ); … … 731 731 'comment_content' => '4', 732 732 'comment_approved' => '1', 733 'comment_date_gmt' => date( 'Y-m-d H:i:s', $now - 400 ),733 'comment_date_gmt' => gmdate( 'Y-m-d H:i:s', $now - 400 ), 734 734 ) 735 735 ); … … 763 763 'comment_content' => '1', 764 764 'comment_approved' => '0', 765 'comment_date_gmt' => date( 'Y-m-d H:i:s', $now - 100 ),765 'comment_date_gmt' => gmdate( 'Y-m-d H:i:s', $now - 100 ), 766 766 ) 767 767 ); … … 771 771 'comment_content' => '2', 772 772 'comment_approved' => '0', 773 'comment_date_gmt' => date( 'Y-m-d H:i:s', $now - 200 ),773 'comment_date_gmt' => gmdate( 'Y-m-d H:i:s', $now - 200 ), 774 774 ) 775 775 ); … … 779 779 'comment_content' => '3', 780 780 'comment_approved' => '0', 781 'comment_date_gmt' => date( 'Y-m-d H:i:s', $now - 100 ),781 'comment_date_gmt' => gmdate( 'Y-m-d H:i:s', $now - 100 ), 782 782 'comment_author_email' => $comment_author_email, 783 783 ) … … 788 788 'comment_content' => '4', 789 789 'comment_approved' => '0', 790 'comment_date_gmt' => date( 'Y-m-d H:i:s', $now - 200 ),790 'comment_date_gmt' => gmdate( 'Y-m-d H:i:s', $now - 200 ), 791 791 'comment_author_email' => $comment_author_email, 792 792 ) … … 797 797 'comment_content' => '5', 798 798 'comment_approved' => '0', 799 'comment_date_gmt' => date( 'Y-m-d H:i:s', $now - 300 ),799 'comment_date_gmt' => gmdate( 'Y-m-d H:i:s', $now - 300 ), 800 800 'comment_author_email' => $comment_author_email, 801 801 ) … … 806 806 'comment_content' => '6', 807 807 'comment_approved' => '1', 808 'comment_date_gmt' => date( 'Y-m-d H:i:s', $now - 400 ),808 'comment_date_gmt' => gmdate( 'Y-m-d H:i:s', $now - 400 ), 809 809 ) 810 810 ); … … 843 843 'comment_content' => '1', 844 844 'comment_approved' => '0', 845 'comment_date_gmt' => date( 'Y-m-d H:i:s', $now ),845 'comment_date_gmt' => gmdate( 'Y-m-d H:i:s', $now ), 846 846 'comment_author_email' => 'foo@bar.mail', 847 847 ) … … 879 879 'comment_content' => '1', 880 880 'comment_approved' => '1', 881 'comment_date_gmt' => date( 'Y-m-d H:i:s', $now - 100 ),881 'comment_date_gmt' => gmdate( 'Y-m-d H:i:s', $now - 100 ), 882 882 ) 883 883 ); … … 887 887 'comment_content' => '2', 888 888 'comment_approved' => '1', 889 'comment_date_gmt' => date( 'Y-m-d H:i:s', $now - 300 ),889 'comment_date_gmt' => gmdate( 'Y-m-d H:i:s', $now - 300 ), 890 890 ) 891 891 ); … … 896 896 'comment_approved' => '1', 897 897 'comment_parent' => $comment_1, 898 'comment_date_gmt' => date( 'Y-m-d H:i:s', $now - 200 ),898 'comment_date_gmt' => gmdate( 'Y-m-d H:i:s', $now - 200 ), 899 899 ) 900 900 ); … … 924 924 'comment_content' => '1', 925 925 'comment_approved' => '1', 926 'comment_date_gmt' => date( 'Y-m-d H:i:s', $now - 300 ),926 'comment_date_gmt' => gmdate( 'Y-m-d H:i:s', $now - 300 ), 927 927 ) 928 928 ); … … 932 932 'comment_content' => '2', 933 933 'comment_approved' => '1', 934 'comment_date_gmt' => date( 'Y-m-d H:i:s', $now - 200 ),934 'comment_date_gmt' => gmdate( 'Y-m-d H:i:s', $now - 200 ), 935 935 ) 936 936 ); … … 941 941 'comment_approved' => '1', 942 942 'comment_parent' => $comment_1, 943 'comment_date_gmt' => date( 'Y-m-d H:i:s', $now - 100 ),943 'comment_date_gmt' => gmdate( 'Y-m-d H:i:s', $now - 100 ), 944 944 ) 945 945 );
Note: See TracChangeset
for help on using the changeset viewer.