@@ -602,59 +602,6 @@ public function testSetShippingAddressToGuestCart()
602
602
$ this ->graphQlMutation ($ query , [], '' , $ this ->getHeaderMap ());
603
603
}
604
604
605
- /**
606
- * @magentoApiDataFixture Magento/Customer/_files/customer.php
607
- * @magentoApiDataFixture Magento/GraphQl/Catalog/_files/simple_product.php
608
- * @magentoApiDataFixture Magento/GraphQl/Quote/_files/customer/create_empty_cart.php
609
- * @magentoApiDataFixture Magento/GraphQl/Quote/_files/add_simple_product.php
610
- */
611
- public function testSetShippingAddressWithLowerCaseCountry ()
612
- {
613
- $ maskedQuoteId = $ this ->getMaskedQuoteIdByReservedOrderId ->execute ('test_quote ' );
614
-
615
- $ query = <<<QUERY
616
- mutation {
617
- setShippingAddressesOnCart(
618
- input: {
619
- cart_id: " {$ maskedQuoteId }"
620
- shipping_addresses: [
621
- {
622
- address: {
623
- firstname: "John"
624
- lastname: "Doe"
625
- street: ["6161 West Centinella Avenue"]
626
- city: "Culver City"
627
- region: "CA"
628
- postcode: "90230"
629
- country_code: "us"
630
- telephone: "555-555-55-55"
631
- }
632
- }
633
- ]
634
- }
635
- ) {
636
- cart {
637
- shipping_addresses {
638
- region {
639
- code
640
- }
641
- country {
642
- code
643
- }
644
- }
645
- }
646
- }
647
- }
648
- QUERY ;
649
- $ result = $ this ->graphQlMutation ($ query , [], '' , $ this ->getHeaderMap ());
650
-
651
- self ::assertCount (1 , $ result ['setShippingAddressesOnCart ' ]['cart ' ]['shipping_addresses ' ]);
652
- $ address = reset ($ result ['setShippingAddressesOnCart ' ]['cart ' ]['shipping_addresses ' ]);
653
-
654
- $ this ->assertEquals ('US ' , $ address ['country ' ]['code ' ]);
655
- $ this ->assertEquals ('CA ' , $ address ['region ' ]['code ' ]);
656
- }
657
-
658
605
/**
659
606
* @magentoApiDataFixture Magento/Customer/_files/customer.php
660
607
* @magentoApiDataFixture Magento/GraphQl/Catalog/_files/simple_product.php
@@ -663,7 +610,7 @@ public function testSetShippingAddressWithLowerCaseCountry()
663
610
* @expectedException \Exception
664
611
* @expectedExceptionMessage "Country Code" cannot contain lowercase characters.
665
612
*/
666
- public function testSetNewShippingAddressOnCartWithLowercaseCountryCode ()
613
+ public function testSetShippingAddressWithLowerCaseCountry ()
667
614
{
668
615
$ maskedQuoteId = $ this ->getMaskedQuoteIdByReservedOrderId ->execute ('test_quote ' );
669
616
0 commit comments