Skip to content

Commit

Permalink
Tests/WPCoreFunctionsMock: rename some function parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfnl committed Sep 26, 2023
1 parent 474b5f8 commit 8ac1044
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions tests/doubles/WPCoreFunctionsMock.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
/**
* Returns the message.
*
* @param string $message The message to return.
* @param string $text The message to return.
*
* @return string The message that is returned.
*/
function __( $message ) {
return $message;
function __( $text ) {
return $text;
}

/**
Expand All @@ -34,21 +34,21 @@ function esc_url( $url ) {
/**
* Mock for sanitize_text_field.
*
* @param string $text The text to be sanitize.
* @param string $str The text to be sanitize.
*
* @return string The text that was sanitized.
*/
function sanitize_text_field( $text ) {
return $text;
function sanitize_text_field( $str ) {
return $str;
}

/**
* Mock for wp_unslash.
*
* @param string $string The string to be wp_unslash.
* @param string $value The string to be wp_unslash.
*
* @return string The string that was unslashed.
*/
function wp_unslash( $string ) {
return $string;
function wp_unslash( $value ) {
return $value;
}

0 comments on commit 8ac1044

Please sign in to comment.