Changeset 35242 for trunk/tests/phpunit/tests/comment/metaCache.php
- Timestamp:
- 10/17/2015 06:02:16 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/comment/metaCache.php
r35225 r35242 11 11 global $wpdb; 12 12 13 $p = self:: $factory->post->create( array( 'post_status' => 'publish' ) );14 $comment_ids = self:: $factory->comment->create_post_comments( $p, 3 );13 $p = self::factory()->post->create( array( 'post_status' => 'publish' ) ); 14 $comment_ids = self::factory()->comment->create_post_comments( $p, 3 ); 15 15 16 16 foreach ( $comment_ids as $cid ) { … … 39 39 global $wpdb; 40 40 41 $p = self:: $factory->post->create( array( 'post_status' => 'publish' ) );42 $comment_ids = self:: $factory->comment->create_post_comments( $p, 3 );41 $p = self::factory()->post->create( array( 'post_status' => 'publish' ) ); 42 $comment_ids = self::factory()->comment->create_post_comments( $p, 3 ); 43 43 44 44 foreach ( $comment_ids as $cid ) { … … 68 68 global $wpdb; 69 69 70 $p = self:: $factory->post->create( array( 'post_status' => 'publish' ) );71 $comment_ids = self:: $factory->comment->create_post_comments( $p, 3 );70 $p = self::factory()->post->create( array( 'post_status' => 'publish' ) ); 71 $comment_ids = self::factory()->comment->create_post_comments( $p, 3 ); 72 72 73 73 foreach ( $comment_ids as $cid ) { … … 94 94 global $wpdb; 95 95 96 $p = self:: $factory->post->create( array( 'post_status' => 'publish' ) );97 $comment_ids = self:: $factory->comment->create_post_comments( $p, 3 );96 $p = self::factory()->post->create( array( 'post_status' => 'publish' ) ); 97 $comment_ids = self::factory()->comment->create_post_comments( $p, 3 ); 98 98 99 99 foreach ( $comment_ids as $cid ) { … … 129 129 global $wpdb; 130 130 131 $posts = self:: $factory->post->create_many( 2, array( 'post_status' => 'publish' ) );131 $posts = self::factory()->post->create_many( 2, array( 'post_status' => 'publish' ) ); 132 132 133 133 $now = time(); 134 134 $comments = array(); 135 135 for ( $i = 0; $i < 5; $i++ ) { 136 $comments[] = self:: $factory->comment->create( array(136 $comments[] = self::factory()->comment->create( array( 137 137 'comment_post_ID' => $posts[0], 138 138 'comment_date_gmt' => date( 'Y-m-d H:i:s', $now - ( 60 * $i ) ), … … 173 173 global $wpdb; 174 174 175 $posts = self:: $factory->post->create_many( 2, array( 'post_status' => 'publish' ) );175 $posts = self::factory()->post->create_many( 2, array( 'post_status' => 'publish' ) ); 176 176 177 177 $now = time(); 178 178 $comments = array(); 179 179 for ( $i = 0; $i < 5; $i++ ) { 180 $comments[] = self:: $factory->comment->create( array(180 $comments[] = self::factory()->comment->create( array( 181 181 'comment_post_ID' => $posts[0], 182 182 'comment_date_gmt' => date( 'Y-m-d H:i:s', $now - ( 60 * $i ) ),
Note: See TracChangeset
for help on using the changeset viewer.