Skip to content

Commit

Permalink
ACPT-1625
Browse files Browse the repository at this point in the history
Co-authored-by: Andrii Dimov <andimov@gmail.com>
  • Loading branch information
aa-kashk and andimov committed Nov 6, 2023
1 parent c74824e commit de8fe82
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
namespace Magento\GraphQl\App;

use Magento\Customer\Api\CustomerRepositoryInterface;
use Magento\Framework\Exception\LocalizedException;
use Magento\Framework\Exception\NoSuchEntityException;
use Magento\Framework\Registry;
use Magento\GraphQl\App\State\GraphQlStateDiff;
Expand Down Expand Up @@ -108,7 +107,6 @@ public function testMergeCarts(): void
['cartId1' => $cartId1, 'cartId2' => $cartId2],
[],
['email' => 'customer@example.com', 'password' => 'password'],

'mergeCarts',
'"data":{"mergeCarts":',
$this
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ public function testState(
string $operationName,
string $expected,
): void {
$this->graphQlStateDiff->
testState($query, $variables, $variables2, $authInfo, $operationName, $expected, $this);
$this->graphQlStateDiff
->testState($query, $variables, $variables2, $authInfo, $operationName, $expected, $this);
}


Expand Down Expand Up @@ -108,15 +108,14 @@ public function testCartState(
array $authInfo,
string $operationName,
string $expected
): void
{
): void {
if ($operationName == 'getCart') {
$this->getMaskedQuoteIdByReservedOrderId =
$this->graphQlStateDiff->getTestObjectManager()->get(GetMaskedQuoteIdByReservedOrderId::class);
$variables['id'] = $this->getMaskedQuoteIdByReservedOrderId->execute($variables['id']);
}
$this->graphQlStateDiff->
testState($query, $variables, $variables2, $authInfo, $operationName, $expected, $this);
$this->graphQlStateDiff
->testState($query, $variables, $variables2, $authInfo, $operationName, $expected, $this);
}

/**
Expand Down

0 comments on commit de8fe82

Please sign in to comment.