From bf1407a60d1ae7a60bb4ef2db3e24d28b2e0a0e5 Mon Sep 17 00:00:00 2001 From: Nicola Mustone Date: Thu, 9 Apr 2015 17:14:59 +0200 Subject: [PATCH] added filters to test_wc_placeholder_img --- tests/unit-tests/product/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit-tests/product/functions.php b/tests/unit-tests/product/functions.php index d2ce0755838..53ed01da4f4 100644 --- a/tests/unit-tests/product/functions.php +++ b/tests/unit-tests/product/functions.php @@ -128,11 +128,11 @@ class Functions extends \WC_Unit_Test_Case { foreach ( $sizes as $size => $values ) { $img = '' . __( 'Placeholder', 'woocommerce' ) . ''; - $this->assertEquals( $img, wc_placeholder_img( $size ) ); + $this->assertEquals( apply_filters( 'woocommerce_placeholder_img', $img ), wc_placeholder_img( $size ) ); } $img = '' . __( 'Placeholder', 'woocommerce' ) . ''; - $this->assertEquals( $img, wc_placeholder_img() ); + $this->assertEquals( apply_filters( 'woocommerce_placeholder_img', $img ), wc_placeholder_img() ); } /**