@@ -64,32 +64,32 @@ public function testGetCartTotalsWithTaxApplied()
6464 self ::assertEquals ('USD ' , $ appliedTaxesResponse [0 ]['amount ' ]['currency ' ]);
6565 }
6666
67- /**
68- * @magentoApiDataFixture Magento/Customer/_files/customer.php
69- * @magentoApiDataFixture Magento/GraphQl/Tax/_files/tax_rule_for_region_1.php
70- * @magentoApiDataFixture Magento/GraphQl/Catalog/_files/simple_product.php
71- * @magentoApiDataFixture Magento/GraphQl/Catalog/_files/apply_tax_for_simple_product.php
72- * @magentoApiDataFixture Magento/GraphQl/Quote/_files/customer/create_empty_cart.php
73- * @magentoApiDataFixture Magento/GraphQl/Quote/_files/set_new_shipping_address.php
74- * @magentoApiDataFixture Magento/GraphQl/Quote/_files/set_new_billing_address.php
75- */
76- public function testGetCartTotalsWithEmptyCart ()
77- {
78- $ maskedQuoteId = $ this ->getMaskedQuoteIdByReservedOrderId ->execute ('test_quote ' );
79- $ query = $ this ->getQuery ($ maskedQuoteId );
80- $ response = $ this ->graphQlQuery ($ query , [], '' , $ this ->getHeaderMap ());
81-
82- self ::assertArrayHasKey ('prices ' , $ response ['cart ' ]);
83- $ pricesResponse = $ response ['cart ' ]['prices ' ];
84- self ::assertEquals (0 , $ pricesResponse ['grand_total ' ]['value ' ]);
85- self ::assertEquals (0 , $ pricesResponse ['subtotal_including_tax ' ]['value ' ]);
86- self ::assertEquals (0 , $ pricesResponse ['subtotal_excluding_tax ' ]['value ' ]);
87- self ::assertEquals (0 , $ pricesResponse ['subtotal_with_discount_excluding_tax ' ]['value ' ]);
88-
89- $ appliedTaxesResponse = $ pricesResponse ['applied_taxes ' ];
90-
91- self ::assertCount (0 , $ appliedTaxesResponse );
92- }
67+ /**
68+ * @magentoApiDataFixture Magento/Customer/_files/customer.php
69+ * @magentoApiDataFixture Magento/GraphQl/Tax/_files/tax_rule_for_region_1.php
70+ * @magentoApiDataFixture Magento/GraphQl/Catalog/_files/simple_product.php
71+ * @magentoApiDataFixture Magento/GraphQl/Catalog/_files/apply_tax_for_simple_product.php
72+ * @magentoApiDataFixture Magento/GraphQl/Quote/_files/customer/create_empty_cart.php
73+ * @magentoApiDataFixture Magento/GraphQl/Quote/_files/set_new_shipping_address.php
74+ * @magentoApiDataFixture Magento/GraphQl/Quote/_files/set_new_billing_address.php
75+ */
76+ public function testGetCartTotalsWithEmptyCart ()
77+ {
78+ $ maskedQuoteId = $ this ->getMaskedQuoteIdByReservedOrderId ->execute ('test_quote ' );
79+ $ query = $ this ->getQuery ($ maskedQuoteId );
80+ $ response = $ this ->graphQlQuery ($ query , [], '' , $ this ->getHeaderMap ());
81+
82+ self ::assertArrayHasKey ('prices ' , $ response ['cart ' ]);
83+ $ pricesResponse = $ response ['cart ' ]['prices ' ];
84+ self ::assertEquals (0 , $ pricesResponse ['grand_total ' ]['value ' ]);
85+ self ::assertEquals (0 , $ pricesResponse ['subtotal_including_tax ' ]['value ' ]);
86+ self ::assertEquals (0 , $ pricesResponse ['subtotal_excluding_tax ' ]['value ' ]);
87+ self ::assertEquals (0 , $ pricesResponse ['subtotal_with_discount_excluding_tax ' ]['value ' ]);
88+
89+ $ appliedTaxesResponse = $ pricesResponse ['applied_taxes ' ];
90+
91+ self ::assertCount (0 , $ appliedTaxesResponse );
92+ }
9393
9494 /**
9595 * @magentoApiDataFixture Magento/Customer/_files/customer.php
0 commit comments