added filters to test_wc_placeholder_img
This commit is contained in:
parent
ce41820fbf
commit
bf1407a60d
|
@ -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() );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue