Skip to content

Commit

Permalink
Add gettext stubs to fix failing tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
schlessera committed Feb 13, 2017
1 parent 02b87e9 commit 64a5257
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/_stubs/includes.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,9 @@ function wp_parse_args( $args, $defaults = '' ) {

function plugin_basename() { return dirname( dirname( __DIR__ ) ); }

function __( $text, $domain ) { return $text; }
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; }

0 comments on commit 64a5257

Please sign in to comment.