Changeset 35186 for trunk/tests/phpunit/tests/term.php
- Timestamp:
- 10/15/2015 04:43:37 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/term.php
r35185 r35186 8 8 protected static $post_ids = array(); 9 9 10 public static function setUpBeforeClass() { 11 parent::setUpBeforeClass(); 12 13 $factory = new WP_UnitTest_Factory(); 14 10 public static function wpSetUpBeforeClass( $factory ) { 15 11 self::$post_ids = $factory->post->create_many( 5 ); 16 17 self::commit_transaction(); 18 } 19 20 public static function tearDownAfterClass() { 21 parent::tearDownAfterClass(); 22 12 } 13 14 public static function wpTearDownAfterClass() { 23 15 array_map( 'wp_delete_post', self::$post_ids ); 24 25 self::commit_transaction();26 16 } 27 17
Note: See TracChangeset
for help on using the changeset viewer.