Changeset 52775
- Timestamp:
- 02/19/2022 12:40:48 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/functions/wpValidateBoolean.php
r52010 r52775 8 8 */ 9 9 class Tests_Functions_wpValidateBoolean extends WP_UnitTestCase { 10 11 /** 12 * Test wp_validate_boolean(). 13 * 14 * @dataProvider data_provider 15 * 16 * @param mixed $test_value 17 * @param bool $expected 18 * 19 * @ticket 30238 20 * @ticket 39868 21 */ 22 public function test_wp_validate_boolean( $test_value, $expected ) { 23 $this->assertSame( $expected, wp_validate_boolean( $test_value ) ); 24 } 25 10 26 /** 11 27 * Provides test scenarios for all possible scenarios in wp_validate_boolean(). … … 42 58 ); 43 59 } 44 45 /**46 * Test wp_validate_boolean().47 *48 * @dataProvider data_provider49 *50 * @param mixed $test_value51 * @param bool $expected52 *53 * @ticket 3023854 * @ticket 3986855 */56 public function test_wp_validate_boolean( $test_value, $expected ) {57 $this->assertSame( wp_validate_boolean( $test_value ), $expected );58 }59 60 }
Note: See TracChangeset
for help on using the changeset viewer.