Make WordPress Core

Ticket #39868: 39868-tests-WpValidateBoolean-fix-assertion.patch

File 39868-tests-WpValidateBoolean-fix-assertion.patch, 949 bytes (added by jrf, 7 years ago)

[tests] WpValidateBoolean: fix assertion

  • tests/phpunit/tests/functions/WpValidateBoolean.php

    From 47c884044518f82e9d974655b1e2d46645f19470 Mon Sep 17 00:00:00 2001
    From: jrfnl <jrfnl@users.noreply.github.com>
    Date: Sat, 21 Sep 2019 03:15:13 +0200
    Subject: [PATCH] [tests] WpValidateBoolean: fix assertion
    
    ---
     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 b class Tests_Functions_WpValidateBoolean extends WP_UnitTestCase { 
    5454         * @ticket 39868
    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}