added filters to test_wc_placeholder_img

This commit is contained in:
Nicola Mustone 2015-04-09 17:14:59 +02:00
parent ce41820fbf
commit bf1407a60d
1 changed files with 2 additions and 2 deletions

View File

@ -128,11 +128,11 @@ class Functions extends \WC_Unit_Test_Case {
foreach ( $sizes as $size => $values ) {
$img = '<img src="' . wc_placeholder_img_src() . '" alt="' . __( 'Placeholder', 'woocommerce' ) . '" width="' . $values['width'] . '" class="woocommerce-placeholder wp-post-image" height="' . $values['height'] . '" />';
$this->assertEquals( $img, wc_placeholder_img( $size ) );
$this->assertEquals( apply_filters( 'woocommerce_placeholder_img', $img ), wc_placeholder_img( $size ) );
}
$img = '<img src="' . wc_placeholder_img_src() . '" alt="' . __( 'Placeholder', 'woocommerce' ) . '" width="180" class="woocommerce-placeholder wp-post-image" height="180" />';
$this->assertEquals( $img, wc_placeholder_img() );
$this->assertEquals( apply_filters( 'woocommerce_placeholder_img', $img ), wc_placeholder_img() );
}
/**