diff --git a/tests/legacy/unit-tests/rest-api/Tests/Version2/orders.php b/tests/legacy/unit-tests/rest-api/Tests/Version2/orders.php index 723ca0b5c43..48ebc33632d 100644 --- a/tests/legacy/unit-tests/rest-api/Tests/Version2/orders.php +++ b/tests/legacy/unit-tests/rest-api/Tests/Version2/orders.php @@ -785,9 +785,10 @@ class WC_Tests_API_Orders_V2 extends WC_REST_Unit_Test_Case { $data = $response->get_data(); $line_item_properties = $data['schema']['properties']['line_items']['items']['properties']; - $this->assertEquals( 14, count( $line_item_properties ) ); + $this->assertEquals( 15, count( $line_item_properties ) ); $this->assertArrayHasKey( 'id', $line_item_properties ); $this->assertArrayHasKey( 'meta_data', $line_item_properties ); + $this->assertArrayHasKey( 'parent_name', $line_item_properties ); $meta_data_item_properties = $line_item_properties['meta_data']['items']['properties']; $this->assertEquals( 5, count( $meta_data_item_properties ) );