Skip to content

Commit 69b70b9

Browse files
committed
MC-22838: Required input type values validation does not work correctly
- Resolve remaining test issues
1 parent 2033890 commit 69b70b9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ input CustomerInput {
6161
middlename: String @doc(description: "The customer's middle name")
6262
lastname: String @doc(description: "The customer's family name")
6363
suffix: String @doc(description: "A value such as Sr., Jr., or III")
64-
email: String! @doc(description: "The customer's email address. Required")
64+
email: String @doc(description: "The customer's email address. Required for customer creation")
6565
dob: String @doc(description: "Deprecated: Use `date_of_birth` instead")
6666
date_of_birth: String @doc(description: "The customer's date of birth")
6767
taxvat: String @doc(description: "The customer's Tax/VAT number (for corporate customers)")

dev/tests/api-functional/testsuite/Magento/GraphQl/AuthorizenetAcceptjs/Customer/SetPaymentMethodTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public function testSetPaymentInvalidInput(\Closure $getMutationClosure, array $
136136

137137
$setPaymentMutation = $getMutationClosure($maskedQuoteId);
138138

139-
foreach($expectedMessages as $expectedMessage){
139+
foreach ($expectedMessages as $expectedMessage) {
140140
$this->expectExceptionMessage($expectedMessage);
141141
}
142142
$this->graphQlMutation($setPaymentMutation, [], '', $this->getHeaderMap());

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function testAddVirtualProductToCart()
5757
/**
5858
* @magentoApiDataFixture Magento/Customer/_files/customer.php
5959
* @expectedException Exception
60-
* @expectedExceptionMessage Required parameter "cart_id" is missing
60+
* @expectedExceptionMessage Field AddSimpleProductsToCartInput.cart_id of required type String! was not provided.
6161
*/
6262
public function testAddVirtualProductToCartIfCartIdIsMissed()
6363
{

0 commit comments

Comments
 (0)