From 4d6ca5bfe5c7972997cb39241500a57fe7a96d09 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 21 Sep 2019 10:28:53 +0000 Subject: [PATCH] Tests: Correct assertion in `test_wp_validate_boolean()` to make sure the return type is properly tested. Props jrf. Fixes #39868. git-svn-id: https://develop.svn.wordpress.org/trunk@46224 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/functions/WpValidateBoolean.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/tests/functions/WpValidateBoolean.php b/tests/phpunit/tests/functions/WpValidateBoolean.php index a9ec9ca2f3..833b731425 100644 --- a/tests/phpunit/tests/functions/WpValidateBoolean.php +++ b/tests/phpunit/tests/functions/WpValidateBoolean.php @@ -54,6 +54,6 @@ class Tests_Functions_WpValidateBoolean extends WP_UnitTestCase { * @ticket 39868 */ public function test_wp_validate_boolean( $test_value, $expected ) { - $this->assertEquals( wp_validate_boolean( $test_value ), $expected ); + $this->assertSame( wp_validate_boolean( $test_value ), $expected ); } }