WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/21/2019 10:28:53 AM (2 months ago)
Author:
SergeyBiryukov
Message:

Tests: Correct assertion in test_wp_validate_boolean() to make sure the return type is properly tested.

Props jrf.
Fixes #39868.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/functions/WpValidateBoolean.php

    r46159 r46224  
    5555     */
    5656    public function test_wp_validate_boolean( $test_value, $expected ) {
    57         $this->assertEquals( wp_validate_boolean( $test_value ), $expected );
     57        $this->assertSame( wp_validate_boolean( $test_value ), $expected );
    5858    }
    5959}
Note: See TracChangeset for help on using the changeset viewer.