Changeset 49603 for trunk/tests/phpunit/tests/post/wpGetPostParentId.php
- Timestamp:
- 11/15/2020 01:59:32 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/wpGetPostParentId.php
r49327 r49603 19 19 public static $post_id; 20 20 21 public static function wpSetUpBeforeClass( ) {22 self::$parent_post_id = self::factory()->post->create();23 self::$post_id = self::factory()->post->create( array( 'post_parent' => self::$parent_post_id ) );21 public static function wpSetUpBeforeClass( WP_UnitTest_Factory $factory ) { 22 self::$parent_post_id = $factory->post->create(); 23 self::$post_id = $factory->post->create( array( 'post_parent' => self::$parent_post_id ) ); 24 24 } 25 25
Note: See TracChangeset
for help on using the changeset viewer.