Changeset 35186 for trunk/tests/phpunit/tests/comment.php
- Timestamp:
- 10/15/2015 04:43:37 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/comment.php
r35176 r35186 8 8 protected static $post_id; 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::$user_id = $factory->user->create(); 16 12 self::$post_id = $factory->post->create( array( 17 13 'post_author' => self::$user_id 18 14 ) ); 19 20 self::commit_transaction(); 21 } 22 23 public static function tearDownAfterClass() { 24 parent::tearDownAfterClass(); 25 15 } 16 17 public static function wpTearDownAfterClass() { 26 18 wp_delete_post( self::$post_id ); 27 19 … … 31 23 wp_delete_user( self::$user_id ); 32 24 } 33 34 self::commit_transaction();35 25 } 36 26
Note: See TracChangeset
for help on using the changeset viewer.