Add mock esc_html into unit test bootstrap
[MAILPOET-6240]
This commit is contained in:
@@ -20,6 +20,17 @@ if ( ! function_exists( 'esc_attr' ) ) {
|
||||
}
|
||||
}
|
||||
|
||||
if ( ! function_exists( 'esc_html' ) ) {
|
||||
/**
|
||||
* Mock esc_html function.
|
||||
*
|
||||
* @param string $text Text to escape.
|
||||
*/
|
||||
function esc_html( $text ) {
|
||||
return $text;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Base class for unit tests.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user