Make WordPress Core


Ignore:
Timestamp:
06/22/2021 04:34:29 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Tests: Use more appropriate assertions in a few tests.

Follow-up to [34804], [41376], [50959], [51124].

See #52625.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/customize/custom-css-setting.php

    r50450 r51196  
    381381        $unclosed_comment = $basic_css . '</style>';
    382382        $result           = $this->setting->validate( $unclosed_comment );
    383         $this->assertTrue( array_key_exists( 'illegal_markup', $result->errors ) );
     383        $this->assertArrayHasKey( 'illegal_markup', $result->errors );
    384384    }
    385385}
Note: See TracChangeset for help on using the changeset viewer.