Skip to content
This repository was archived by the owner on Dec 19, 2019. It is now read-only.

Commit cd9ee48

Browse files
authored
ENGCOM-4579: Currency misspelled in graphql attributes #465
2 parents 9d6d4e2 + f126d6b commit cd9ee48

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

app/code/Magento/DirectoryGraphQl/etc/schema.graphqls

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ type Query {
1010
type Currency {
1111
base_currency_code: String
1212
base_currency_symbol: String
13-
default_display_currecy_code: String
14-
default_display_currecy_symbol: String
13+
default_display_currecy_code: String @deprecated(reason: "Symbol was missed. Use `default_display_currency_code`.")
14+
default_display_currency_code: String
15+
default_display_currecy_symbol: String @deprecated(reason: "Symbol was missed. Use `default_display_currency_symbol`.")
16+
default_display_currency_symbol: String
1517
available_currency_codes: [String]
1618
exchange_rates: [ExchangeRate]
1719
}

dev/tests/api-functional/testsuite/Magento/GraphQl/Directory/CurrencyTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ public function testGetCurrency()
2121
currency {
2222
base_currency_code
2323
base_currency_symbol
24-
default_display_currecy_code
25-
default_display_currecy_symbol
24+
default_display_currency_code
25+
default_display_currency_symbol
2626
available_currency_codes
2727
exchange_rates {
2828
currency_to
@@ -36,8 +36,8 @@ public function testGetCurrency()
3636
$this->assertArrayHasKey('currency', $result);
3737
$this->assertArrayHasKey('base_currency_code', $result['currency']);
3838
$this->assertArrayHasKey('base_currency_symbol', $result['currency']);
39-
$this->assertArrayHasKey('default_display_currecy_code', $result['currency']);
40-
$this->assertArrayHasKey('default_display_currecy_symbol', $result['currency']);
39+
$this->assertArrayHasKey('default_display_currency_code', $result['currency']);
40+
$this->assertArrayHasKey('default_display_currency_symbol', $result['currency']);
4141
$this->assertArrayHasKey('available_currency_codes', $result['currency']);
4242
$this->assertArrayHasKey('exchange_rates', $result['currency']);
4343
}

0 commit comments

Comments
 (0)