File tree Expand file tree Collapse file tree 3 files changed +26
-1
lines changed
app/code/Magento/QuoteGraphQl/Model/Cart
dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer Expand file tree Collapse file tree 3 files changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ public function __construct(
39
39
*/
40
40
public function execute (Quote $ quote ): void
41
41
{
42
- if (false === $ quote ->getCustomerIsGuest ()) {
42
+ if (! $ quote ->getCustomerIsGuest ()) {
43
43
return ;
44
44
}
45
45
Original file line number Diff line number Diff line change @@ -1759,4 +1759,16 @@ private function getPlaceOrderQuery(string $maskedQuoteId): string
1759
1759
}
1760
1760
QUERY ;
1761
1761
}
1762
+
1763
+ /**
1764
+ * @magentoApiDataFixture Magento/Customer/_files/customer.php
1765
+ * @magentoApiDataFixture Magento/GraphQl/Catalog/_files/simple_product.php
1766
+ * @magentoApiDataFixture Magento/GraphQl/Quote/_files/customer/create_empty_cart.php
1767
+ * @magentoApiDataFixture Magento/GraphQl/Quote/_files/add_simple_product.php
1768
+ * @magentoConfigFixture default_store checkout/options/guest_checkout 0
1769
+ */
1770
+ public function testSetBillingAddressAndPlaceOrderWithGuestCheckoutDisabled ()
1771
+ {
1772
+ $ this ->testSetBillingAddressAndPlaceOrder ();
1773
+ }
1762
1774
}
Original file line number Diff line number Diff line change @@ -1950,4 +1950,17 @@ private function getPlaceOrderQuery(string $maskedQuoteId): string
1950
1950
}
1951
1951
QUERY ;
1952
1952
}
1953
+
1954
+ /**
1955
+ * @magentoApiDataFixture Magento/Customer/_files/customer.php
1956
+ * @magentoApiDataFixture Magento/GraphQl/Catalog/_files/simple_product.php
1957
+ * @magentoApiDataFixture Magento/GraphQl/Quote/_files/customer/create_empty_cart.php
1958
+ * @magentoApiDataFixture Magento/GraphQl/Quote/_files/add_simple_product.php
1959
+ * @magentoApiDataFixture Magento/GraphQl/Quote/_files/set_new_billing_address.php
1960
+ * @magentoConfigFixture default_store checkout/options/guest_checkout 0
1961
+ */
1962
+ public function testSetNewShippingAddressAndPlaceOrderWithGuestCheckoutDisabled ()
1963
+ {
1964
+ $ this ->testSetNewShippingAddressAndPlaceOrder ();
1965
+ }
1953
1966
}
You can’t perform that action at this time.
0 commit comments