Commit 7c57f2eb182 for woocommerce

commit 7c57f2eb18232e96ea4ad6d04593af5aa8a0c9c6
Author: Brandon Kraft <public@brandonkraft.com>
Date:   Tue Jul 21 15:01:09 2026 -0600

    Add tax_lines meta schema assertion to orders REST controller test (#66807)

    * Add tax_lines meta schema assertion to orders REST controller test

    PR #65513 widened the orders meta_data schema (value: 'mixed' to a
    standard type union; line item display_value: 'string' to the union,
    plus display_key/display_value marked readonly), but its
    schema-assertion test omitted tax_lines, whose value field the PR also
    changed. Extend test_meta_data_schema_advertises_type_union to cover
    tax_lines and add a changelog entry documenting the schema-type change
    for external consumers.

    Fixes #66517

    * Compact changelog entry for readability

    Address review feedback from kalessil: trim the changelog message to a
    single line. The schema-change detail remains in the PR description.

diff --git a/plugins/woocommerce/changelog/dev-66517-orders-meta-schema-union-coverage b/plugins/woocommerce/changelog/dev-66517-orders-meta-schema-union-coverage
new file mode 100644
index 00000000000..5325c4de253
--- /dev/null
+++ b/plugins/woocommerce/changelog/dev-66517-orders-meta-schema-union-coverage
@@ -0,0 +1,4 @@
+Significance: patch
+Type: dev
+
+Add test coverage for the orders REST tax line item meta schema type union.
diff --git a/plugins/woocommerce/tests/php/includes/rest-api/Controllers/Version3/class-wc-rest-orders-controller-tests.php b/plugins/woocommerce/tests/php/includes/rest-api/Controllers/Version3/class-wc-rest-orders-controller-tests.php
index 18f63082d49..cefddd484f7 100644
--- a/plugins/woocommerce/tests/php/includes/rest-api/Controllers/Version3/class-wc-rest-orders-controller-tests.php
+++ b/plugins/woocommerce/tests/php/includes/rest-api/Controllers/Version3/class-wc-rest-orders-controller-tests.php
@@ -1119,6 +1119,7 @@ class WC_REST_Orders_Controller_Tests extends WC_REST_Unit_Test_Case {
 		$meta_containers = array(
 			$properties['meta_data']['items']['properties'],
 			$properties['line_items']['items']['properties']['meta_data']['items']['properties'],
+			$properties['tax_lines']['items']['properties']['meta_data']['items']['properties'],
 			$properties['shipping_lines']['items']['properties']['meta_data']['items']['properties'],
 			$properties['fee_lines']['items']['properties']['meta_data']['items']['properties'],
 			$properties['coupon_lines']['items']['properties']['meta_data']['items']['properties'],