From a38ca8fc117cf24883c8c8f78aa36ad56536b5b5 Mon Sep 17 00:00:00 2001 From: David Grayston Date: Fri, 25 Oct 2024 15:30:12 +0100 Subject: [PATCH] test: Correction to transaction create and update tests --- .../Resources/Transactions/TransactionsClientTest.php | 6 ++---- .../create_with_multiple_non_catalog_price_and_product.json | 1 - .../request/update_with_non_catalog_price_and_product.json | 1 - 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/tests/Functional/Resources/Transactions/TransactionsClientTest.php b/tests/Functional/Resources/Transactions/TransactionsClientTest.php index 5e66fbf..d797fd4 100644 --- a/tests/Functional/Resources/Transactions/TransactionsClientTest.php +++ b/tests/Functional/Resources/Transactions/TransactionsClientTest.php @@ -212,7 +212,7 @@ public static function createOperationsProvider(): \Generator ), 20, ), - new TransactionItemPreviewWithNonCatalogPrice( + new TransactionCreateItemWithPrice( new TransactionNonCatalogPriceWithProduct( 'Annual (per seat)', new Money('30000', CurrencyCode::USD()), @@ -222,7 +222,6 @@ public static function createOperationsProvider(): \Generator ), ), 20, - true, ), ], ), @@ -411,7 +410,7 @@ public static function updateOperationsProvider(): \Generator ), 20, ), - new TransactionItemPreviewWithNonCatalogPrice( + new TransactionUpdateItemWithPrice( new TransactionNonCatalogPriceWithProduct( 'Annual (per seat)', new Money('30000', CurrencyCode::USD()), @@ -421,7 +420,6 @@ public static function updateOperationsProvider(): \Generator ), ), 20, - true, ), ], ), diff --git a/tests/Functional/Resources/Transactions/_fixtures/request/create_with_multiple_non_catalog_price_and_product.json b/tests/Functional/Resources/Transactions/_fixtures/request/create_with_multiple_non_catalog_price_and_product.json index 8d744ff..05d6c4d 100644 --- a/tests/Functional/Resources/Transactions/_fixtures/request/create_with_multiple_non_catalog_price_and_product.json +++ b/tests/Functional/Resources/Transactions/_fixtures/request/create_with_multiple_non_catalog_price_and_product.json @@ -31,7 +31,6 @@ } }, { - "include_in_totals": true, "price": { "description": "Annual (per seat)", "product": { diff --git a/tests/Functional/Resources/Transactions/_fixtures/request/update_with_non_catalog_price_and_product.json b/tests/Functional/Resources/Transactions/_fixtures/request/update_with_non_catalog_price_and_product.json index 8d744ff..05d6c4d 100644 --- a/tests/Functional/Resources/Transactions/_fixtures/request/update_with_non_catalog_price_and_product.json +++ b/tests/Functional/Resources/Transactions/_fixtures/request/update_with_non_catalog_price_and_product.json @@ -31,7 +31,6 @@ } }, { - "include_in_totals": true, "price": { "description": "Annual (per seat)", "product": {