Add mock esc_html into unit test bootstrap

[MAILPOET-6240]
This commit is contained in:
Jan Lysý
2024-11-05 14:20:41 +01:00
committed by Jan Lysý
parent 853bf6fcfe
commit 65948c8033

View File

@@ -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.
*/