Changeset 49603 for trunk/tests/phpunit/includes/testcase-canonical.php
- Timestamp:
- 11/15/2020 01:59:32 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/testcase-canonical.php
r49184 r49603 16 16 public $structure = '/%year%/%monthnum%/%day%/%postname%/'; 17 17 18 public static function wpSetUpBeforeClass( $factory ) {18 public static function wpSetUpBeforeClass( WP_UnitTest_Factory $factory ) { 19 19 self::generate_shared_fixtures( $factory ); 20 20 } … … 42 42 * @since 4.1.0 43 43 */ 44 public static function generate_shared_fixtures( $factory ) {44 public static function generate_shared_fixtures( WP_UnitTest_Factory $factory ) { 45 45 self::$old_current_user = get_current_user_id(); 46 46 self::$author_id = $factory->user->create( array( 'user_login' => 'canonical-author' ) ); … … 53 53 54 54 // Already created by install defaults: 55 // self::factory()->term->create( array( 'taxonomy' => 'category', 'name' => 'uncategorized' ) );55 // $factory->term->create( array( 'taxonomy' => 'category', 'name' => 'uncategorized' ) ); 56 56 57 57 self::$post_ids[] = $factory->post->create(
Note: See TracChangeset
for help on using the changeset viewer.