forked from magento/magento2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
magento#682: [Test coverage] added test cases for missed parameters a…
…t 'setBillingAddressMutation'
- Loading branch information
Vaha
committed
May 11, 2019
1 parent
02bca98
commit 6d71e5c
Showing
3 changed files
with
190 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
.../testsuite/Magento/GraphQl/Quote/_files/set_multishipping_with_two_shipping_addresses.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
declare(strict_types=1); | ||
|
||
use Magento\Quote\Api\CartRepositoryInterface; | ||
use Magento\Quote\Model\QuoteFactory; | ||
use Magento\Quote\Model\ResourceModel\Quote as QuoteResource; | ||
use Magento\TestFramework\Helper\Bootstrap; | ||
|
||
/** @var QuoteFactory $quoteFactory */ | ||
$quoteFactory = Bootstrap::getObjectManager()->get(QuoteFactory::class); | ||
/** @var QuoteResource $quoteResource */ | ||
$quoteResource = Bootstrap::getObjectManager()->get(QuoteResource::class); | ||
|
||
$quote = $quoteFactory->create(); | ||
$quoteResource->load($quote, 'test_quote', 'reserved_order_id'); | ||
|
||
require __DIR__ . '/../../../Multishipping/Fixtures/shipping_address_list.php'; | ||
|
||
/** @var CartRepositoryInterface $quoteRepository */ | ||
$quoteRepository = $objectManager->get(CartRepositoryInterface::class); | ||
$quote->collectTotals(); | ||
$quoteRepository->save($quote); |