Changeset 49603 for trunk/tests/phpunit/tests/comment/getCommentLink.php
- Timestamp:
- 11/15/2020 01:59:32 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/comment/getCommentLink.php
r46586 r49603 8 8 protected static $comments = array(); 9 9 10 public static function wpSetUpBeforeClass( $factory ) {10 public static function wpSetUpBeforeClass( WP_UnitTest_Factory $factory ) { 11 11 $now = time(); 12 self::$p = self::factory()->post->create();12 self::$p = $factory->post->create(); 13 13 14 self::$comments[] = self::factory()->comment->create(14 self::$comments[] = $factory->comment->create( 15 15 array( 16 16 'comment_post_ID' => self::$p, … … 19 19 ) 20 20 ); 21 self::$comments[] = self::factory()->comment->create(21 self::$comments[] = $factory->comment->create( 22 22 array( 23 23 'comment_post_ID' => self::$p, … … 26 26 ) 27 27 ); 28 self::$comments[] = self::factory()->comment->create(28 self::$comments[] = $factory->comment->create( 29 29 array( 30 30 'comment_post_ID' => self::$p, … … 33 33 ) 34 34 ); 35 self::$comments[] = self::factory()->comment->create(35 self::$comments[] = $factory->comment->create( 36 36 array( 37 37 'comment_post_ID' => self::$p, … … 40 40 ) 41 41 ); 42 self::$comments[] = self::factory()->comment->create(42 self::$comments[] = $factory->comment->create( 43 43 array( 44 44 'comment_post_ID' => self::$p, … … 47 47 ) 48 48 ); 49 self::$comments[] = self::factory()->comment->create(49 self::$comments[] = $factory->comment->create( 50 50 array( 51 51 'comment_post_ID' => self::$p,
Note: See TracChangeset
for help on using the changeset viewer.