Make WordPress Core

Changeset 54720


Ignore:
Timestamp:
10/29/2022 03:57:48 PM (20 months ago)
Author:
SergeyBiryukov
Message:

Tests: Remove unused $user_ids property in Tests_Ajax_Autosave class.

This was previously used to delete the users created during wpSetUpBeforeClass(), however that now happens automatically in WP_UnitTestCase_Base::tear_down_after_class() via _delete_all_data().

Follow-up to [35311], [37404], [38398].

See #56793.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/ajax/Autosave.php

    r53561 r54720  
    2727    protected static $post;
    2828    protected static $post_id;
    29     protected static $user_ids = array();
    3029
    3130    public static function wpSetUpBeforeClass( WP_UnitTest_Factory $factory ) {
    3231        self::$admin_id   = $factory->user->create( array( 'role' => 'administrator' ) );
    33         self::$user_ids[] = self::$admin_id;
    3432        self::$editor_id  = $factory->user->create( array( 'role' => 'editor' ) );
    35         self::$user_ids[] = self::$editor_id;
    3633
    3734        // Set a user so the $post has 'post_author'.
Note: See TracChangeset for help on using the changeset viewer.