From 64a52571a86c199dd1128ecc44d97553e5b8edc9 Mon Sep 17 00:00:00 2001 From: Alain Schlesser Date: Mon, 13 Feb 2017 14:04:29 +0100 Subject: [PATCH] Add gettext stubs to fix failing tests. --- tests/_stubs/includes.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/_stubs/includes.php b/tests/_stubs/includes.php index 726ca707..d7ea33ee 100644 --- a/tests/_stubs/includes.php +++ b/tests/_stubs/includes.php @@ -32,4 +32,9 @@ function wp_parse_args( $args, $defaults = '' ) { function plugin_basename() { return dirname( dirname( __DIR__ ) ); } -function __( $text, $domain ) { return $text; } \ No newline at end of file +function __( $text, $domain ) { return $text; } +function esc_attr__( $text, $domain ) { return $text; } +function esc_html__( $text, $domain ) { return $text; } +function _e( $text, $domain ) { echo $text; } +function esc_attr_e( $text, $domain ) { echo $text; } +function esc_html_e( $text, $domain ) { echo $text; }