Skip to content

Commit 26412e9

Browse files
committed
GraphQL-604: [Test coverage] End to tests for customer checkout workflow
1 parent c59be10 commit 26412e9

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

app/code/Magento/QuoteGraphQl/Model/Cart/CreateEmptyCartForCustomer.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ public function __construct(
4747
}
4848

4949
/**
50+
* Create empty cart for customer
51+
*
52+
* @param int $customerId
5053
* @param string|null $predefinedMaskedQuoteId
5154
* @return string
5255
*/

app/code/Magento/QuoteGraphQl/Model/Cart/CreateEmptyCartForGuest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ public function __construct(
4747
}
4848

4949
/**
50+
* Create empty cart for guest
51+
*
5052
* @param string|null $predefinedMaskedQuoteId
5153
* @return string
5254
*/

app/code/Magento/QuoteGraphQl/Model/Resolver/CreateEmptyCart.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ public function resolve(Field $field, $context, ResolveInfo $info, array $value
7272
}
7373

7474
/**
75+
* Validate masked id
76+
*
7577
* @param string $maskedId
7678
* @throws GraphQlAlreadyExistsException
7779
* @throws GraphQlInputException
@@ -88,6 +90,8 @@ private function validateMaskedId(string $maskedId): void
8890
}
8991

9092
/**
93+
* Check is quote with such maskedId already exists
94+
*
9195
* @param string $maskedId
9296
* @return bool
9397
*/

0 commit comments

Comments
 (0)