File tree 5 files changed +9
-7
lines changed
ConfigurableProductGraphQl/Model
CustomerGraphQl/Model/Customer
api-functional/testsuite/Magento/GraphQl/Quote
integration/testsuite/Magento/Checkout/_files
5 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 11
11
use Magento \ConfigurableProduct \Model \Product \Type \Configurable as Type ;
12
12
13
13
/**
14
- * { @inheritdoc}
14
+ * @inheritdoc
15
15
*/
16
16
class ConfigurableProductTypeResolver implements TypeResolverInterface
17
17
{
@@ -21,13 +21,12 @@ class ConfigurableProductTypeResolver implements TypeResolverInterface
21
21
const TYPE_RESOLVER = 'ConfigurableProduct ' ;
22
22
23
23
/**
24
- * { @inheritdoc}
24
+ * @inheritdoc
25
25
*/
26
- public function resolveType (array $ data ) : string
26
+ public function resolveType (array $ data ): string
27
27
{
28
28
if (isset ($ data ['type_id ' ]) && $ data ['type_id ' ] == Type::TYPE_CODE ) {
29
29
return self ::TYPE_RESOLVER ;
30
-
31
30
}
32
31
return '' ;
33
32
}
Original file line number Diff line number Diff line change @@ -59,12 +59,14 @@ public function __construct(
59
59
}
60
60
61
61
/**
62
+ * Creates new customer account
63
+ *
62
64
* @param array $args
63
65
* @return CustomerInterface
64
66
* @throws LocalizedException
65
67
* @throws NoSuchEntityException
66
68
*/
67
- public function execute ($ args )
69
+ public function execute (array $ args ): CustomerInterface
68
70
{
69
71
$ customerDataObject = $ this ->customerFactory ->create ();
70
72
$ this ->dataObjectHelper ->populateWithArray (
Original file line number Diff line number Diff line change 17
17
class SetUpUserContext
18
18
{
19
19
/**
20
+ * Set up user context after creating new customer account
21
+ *
20
22
* @param ContextInterface $context
21
23
* @param CustomerInterface $customer
22
24
*/
Original file line number Diff line number Diff line change @@ -85,7 +85,6 @@ public function testGetCartFromAnotherCustomer()
85
85
'reserved_order_id '
86
86
);
87
87
88
-
89
88
$ maskedQuoteId = $ this ->quoteIdToMaskedId ->execute ((int )$ this ->quote ->getId ());
90
89
$ query = $ this ->prepareGetCartQuery ($ maskedQuoteId );
91
90
Original file line number Diff line number Diff line change 16
16
->create ();
17
17
$ quoteIdMask ->setQuoteId ($ quote ->getId ());
18
18
$ quoteIdMask ->setDataChanges (true );
19
- $ quoteIdMask ->save ();
19
+ $ quoteIdMask ->save ();
You can’t perform that action at this time.
0 commit comments