Fix tax name with % on the Thank You page #45103
This commit is contained in:
parent
8dafe5f53b
commit
e493ac9257
|
@ -19,10 +19,12 @@ class WC_Order_Item_Tax_Test extends WC_Unit_Test_Case {
|
|||
$this->order_item_tax = new \WC_Order_Item_Tax();
|
||||
|
||||
parent::setUp();
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Test save label.
|
||||
* @param string $label label to save.
|
||||
* @param string $expected_label expected label.
|
||||
* @testDox Test that the label is saved correctly
|
||||
* @dataProvider data_provider_test_set_label
|
||||
*/
|
||||
|
@ -34,6 +36,9 @@ class WC_Order_Item_Tax_Test extends WC_Unit_Test_Case {
|
|||
$this->assertSame( $expected_label, $actual_label );
|
||||
}
|
||||
|
||||
/**
|
||||
* Data provider.
|
||||
*/
|
||||
public function data_provider_test_set_label(): array {
|
||||
return array(
|
||||
'empty' => array( '', __( 'Tax', 'woocommerce' ) ),
|
||||
|
|
Loading…
Reference in New Issue