Changeset 38398 for trunk/tests/phpunit/tests/functions/getArchives.php
- Timestamp:
- 08/27/2016 08:35:16 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/functions/getArchives.php
r37271 r38398 22 22 public static function wpSetUpBeforeClass( $factory ) { 23 23 self::$post_ids = $factory->post->create_many( 8, array( 'post_type' => 'post', 'post_author' => '1' ) ); 24 }25 26 public static function wpTearDownAfterClass() {27 foreach ( self::$post_ids as $post_id ) {28 wp_delete_post( $post_id, true );29 }30 24 } 31 25
Note: See TracChangeset
for help on using the changeset viewer.