Make WordPress Core

Changeset 46693


Ignore:
Timestamp:
11/10/2019 01:53:17 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Tests: Don't skip the tests intended for Multisite when running on single site, add them to the ms-required group instead.

See #43438.

Location:
trunk/tests/phpunit/tests/ajax
Files:
2 edited

Legend:

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

    r46644 r46693  
    313313     * Test requests do not succeed on multisite when the current user is not a network admin.
    314314     *
     315     * @ticket 43438
    315316     * @group multisite
    316      *
    317      * @ticket 43438
     317     * @group ms-required
    318318     */
    319319    public function test_error_when_current_user_missing_required_capabilities_multisite() {
    320         if ( ! is_multisite() ) {
    321             $this->markTestSkipped( 'This test only runs on multisite.' );
    322         }
    323 
    324320        revoke_super_admin( get_current_user_id() );
    325321
  • trunk/tests/phpunit/tests/ajax/PrivacyExportPersonalData.php

    r46644 r46693  
    274274     * Test requests do not succeed on multisite when the current user is not a network admin.
    275275     *
     276     * @ticket 43438
    276277     * @group multisite
    277      *
    278      * @ticket 43438
     278     * @group ms-required
    279279     */
    280280    public function test_error_when_current_user_missing_required_capability_multisite() {
    281         if ( ! is_multisite() ) {
    282             $this->markTestSkipped( 'This test only runs on multisite.' );
    283         }
    284 
    285281        revoke_super_admin( get_current_user_id() );
    286282
Note: See TracChangeset for help on using the changeset viewer.