Skip to content

Commit 2f766b1

Browse files
author
Tobias Westfeld
committed
#758: fix code style in tests
1 parent 0c08e24 commit 2f766b1

File tree

2 files changed

+51
-51
lines changed

2 files changed

+51
-51
lines changed

dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer/CartTotalsTest.php

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -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

dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Guest/CartTotalsTest.php

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -59,31 +59,31 @@ public function testGetCartTotalsWithTaxApplied()
5959
self::assertEquals('USD', $appliedTaxesResponse[0]['amount']['currency']);
6060
}
6161

62-
/**
63-
* @magentoApiDataFixture Magento/GraphQl/Tax/_files/tax_rule_for_region_1.php
64-
* @magentoApiDataFixture Magento/GraphQl/Catalog/_files/simple_product.php
65-
* @magentoApiDataFixture Magento/GraphQl/Catalog/_files/apply_tax_for_simple_product.php
66-
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/guest/create_empty_cart.php
67-
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/set_new_shipping_address.php
68-
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/set_new_billing_address.php
69-
*/
70-
public function testGetCartTotalsWithEmptyCart()
71-
{
72-
$maskedQuoteId = $this->getMaskedQuoteIdByReservedOrderId->execute('test_quote');
73-
$query = $this->getQuery($maskedQuoteId);
74-
$response = $this->graphQlQuery($query);
75-
76-
self::assertArrayHasKey('prices', $response['cart']);
77-
$pricesResponse = $response['cart']['prices'];
78-
self::assertEquals(0, $pricesResponse['grand_total']['value']);
79-
self::assertEquals(0, $pricesResponse['subtotal_including_tax']['value']);
80-
self::assertEquals(0, $pricesResponse['subtotal_excluding_tax']['value']);
81-
self::assertEquals(0, $pricesResponse['subtotal_with_discount_excluding_tax']['value']);
82-
83-
$appliedTaxesResponse = $pricesResponse['applied_taxes'];
84-
85-
self::assertCount(0, $appliedTaxesResponse);
86-
}
62+
/**
63+
* @magentoApiDataFixture Magento/GraphQl/Tax/_files/tax_rule_for_region_1.php
64+
* @magentoApiDataFixture Magento/GraphQl/Catalog/_files/simple_product.php
65+
* @magentoApiDataFixture Magento/GraphQl/Catalog/_files/apply_tax_for_simple_product.php
66+
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/guest/create_empty_cart.php
67+
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/set_new_shipping_address.php
68+
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/set_new_billing_address.php
69+
*/
70+
public function testGetCartTotalsWithEmptyCart()
71+
{
72+
$maskedQuoteId = $this->getMaskedQuoteIdByReservedOrderId->execute('test_quote');
73+
$query = $this->getQuery($maskedQuoteId);
74+
$response = $this->graphQlQuery($query);
75+
76+
self::assertArrayHasKey('prices', $response['cart']);
77+
$pricesResponse = $response['cart']['prices'];
78+
self::assertEquals(0, $pricesResponse['grand_total']['value']);
79+
self::assertEquals(0, $pricesResponse['subtotal_including_tax']['value']);
80+
self::assertEquals(0, $pricesResponse['subtotal_excluding_tax']['value']);
81+
self::assertEquals(0, $pricesResponse['subtotal_with_discount_excluding_tax']['value']);
82+
83+
$appliedTaxesResponse = $pricesResponse['applied_taxes'];
84+
85+
self::assertCount(0, $appliedTaxesResponse);
86+
}
8787

8888
/**
8989
* @magentoApiDataFixture Magento/GraphQl/Catalog/_files/simple_product.php

0 commit comments

Comments
 (0)