Fix tax name with % on the Thank You page #45103

This commit is contained in:
PavloBorysenko 2024-09-18 17:57:33 +02:00
parent 8dafe5f53b
commit e493ac9257
1 changed files with 26 additions and 21 deletions

View File

@ -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' ) ),