mirror of
git://develop.git.wordpress.org/
synced 2025-03-23 21:39:50 +01:00
Docs: Correct parameter types for data_wp_validate_boolean()
.
Follow-up to [46159], [46224], [52775], [52776]. See #54725, #54729. git-svn-id: https://develop.svn.wordpress.org/trunk@52777 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2836ece22f
commit
3d0607f0df
@ -15,8 +15,8 @@ class Tests_Functions_CleanupHeaderComment extends WP_UnitTestCase {
|
||||
*
|
||||
* @dataProvider data_cleanup_header_comment
|
||||
*
|
||||
* @param string $test_string
|
||||
* @param string $expected
|
||||
* @param string $test_string Test string.
|
||||
* @param string $expected Expected return value.
|
||||
*/
|
||||
public function test_cleanup_header_comment( $test_string, $expected ) {
|
||||
$this->assertSameIgnoreEOL( $expected, _cleanup_header_comment( $test_string ) );
|
||||
|
@ -16,8 +16,8 @@ class Tests_Functions_wpValidateBoolean extends WP_UnitTestCase {
|
||||
* @ticket 30238
|
||||
* @ticket 39868
|
||||
*
|
||||
* @param mixed $test_value
|
||||
* @param bool $expected
|
||||
* @param mixed $test_value Test value.
|
||||
* @param bool $expected Expected return value.
|
||||
*/
|
||||
public function test_wp_validate_boolean( $test_value, $expected ) {
|
||||
$this->assertSame( $expected, wp_validate_boolean( $test_value ) );
|
||||
@ -27,8 +27,8 @@ class Tests_Functions_wpValidateBoolean extends WP_UnitTestCase {
|
||||
* Data provider for test_wp_validate_boolean().
|
||||
*
|
||||
* @return array[] Test parameters {
|
||||
* @type string $test_value Test value.
|
||||
* @type string $expected Expected return value.
|
||||
* @type mixed $test_value Test value.
|
||||
* @type bool $expected Expected return value.
|
||||
* }
|
||||
*/
|
||||
public function data_wp_validate_boolean() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user