Changeset 49002 for trunk/tests/phpunit/tests/comment/wpAllowComment.php
- Timestamp:
- 09/19/2020 09:25:55 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/comment/wpAllowComment.php
r48996 r49002 8 8 protected static $comment_id; 9 9 10 function setUp() { 11 parent::setUp(); 12 13 self::$post_id = self::factory()->post->create(); 14 self::$comment_id = self::factory()->comment->create( 10 public static function wpSetupBeforeClass( $factory ) { 11 self::$post_id = $factory->post->create(); 12 self::$comment_id = $factory->comment->create( 15 13 array( 16 14 'comment_post_ID' => self::$post_id, … … 26 24 } 27 25 28 function tearDown() {26 public static function wpTeardownAfterClass() { 29 27 wp_delete_post( self::$post_id, true ); 30 28 wp_delete_comment( self::$comment_id, true );
Note: See TracChangeset
for help on using the changeset viewer.