Skip to content
This repository was archived by the owner on Dec 19, 2019. It is now read-only.

GraphQL-431: Test coverage: Using the "use_for_shipping" option with multishipping is not possible #452

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ protected function setUp()
* @magentoApiDataFixture Magento/Catalog/_files/product_simple.php
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/customer/create_empty_cart.php
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/add_simple_product.php
*
* @throws \Exception
*/
public function testSetNewBillingAddress()
{
Expand Down Expand Up @@ -119,6 +121,8 @@ public function testSetNewBillingAddress()
* @magentoApiDataFixture Magento/Catalog/_files/product_simple.php
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/customer/create_empty_cart.php
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/add_simple_product.php
*
* @throws \Exception
*/
public function testSetNewBillingAddressWithUseForShippingParameter()
{
Expand Down Expand Up @@ -197,6 +201,8 @@ public function testSetNewBillingAddressWithUseForShippingParameter()
* @magentoApiDataFixture Magento/Catalog/_files/product_simple.php
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/customer/create_empty_cart.php
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/add_simple_product.php
*
* @throws \Exception
*/
public function testSetBillingAddressFromAddressBook()
{
Expand Down Expand Up @@ -279,6 +285,8 @@ public function testSetNotExistedBillingAddressFromAddressBook()
* @magentoApiDataFixture Magento/Catalog/_files/product_simple.php
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/customer/create_empty_cart.php
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/add_simple_product.php
*
* @throws \Exception
*/
public function testSetNewBillingAddressAndFromAddressBookAtSameTime()
{
Expand Down Expand Up @@ -328,6 +336,8 @@ public function testSetNewBillingAddressAndFromAddressBookAtSameTime()
* @magentoApiDataFixture Magento/Catalog/_files/product_simple.php
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/guest/create_empty_cart.php
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/add_simple_product.php
*
* @throws \Exception
*/
public function testSetBillingAddressToGuestCart()
{
Expand Down Expand Up @@ -363,6 +373,8 @@ public function testSetBillingAddressToGuestCart()
* @magentoApiDataFixture Magento/Customer/_files/three_customers.php
* @magentoApiDataFixture Magento/Customer/_files/customer_address.php
* @magentoApiDataFixture Magento/Checkout/_files/quote_with_simple_product_saved.php
*
* @throws \Exception
*/
public function testSetBillingAddressToAnotherCustomerCart()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ protected function setUp()
* @magentoApiDataFixture Magento/Catalog/_files/product_simple.php
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/guest/create_empty_cart.php
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/add_simple_product.php
*
* @throws \Exception
*/
public function testSetNewBillingAddress()
{
Expand Down Expand Up @@ -86,13 +88,13 @@ public function testSetNewBillingAddress()
}

/**
* @magentoApiDataFixture Magento/Catalog/_files/product_simple.php
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/guest/create_empty_cart.php
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/add_simple_product.php
* @magentoApiDataFixture Magento/Checkout/_files/quote_with_simple_product_saved.php
*
* @throws \Exception
*/
public function testSetNewBillingAddressWithUseForShippingParameter()
{
$maskedQuoteId = $this->getMaskedQuoteIdByReservedOrderId->execute('test_quote');
$maskedQuoteId = $this->getMaskedQuoteIdByReservedOrderId->execute('test_order_with_simple_product_without_address');

$query = <<<QUERY
mutation {
Expand Down Expand Up @@ -162,13 +164,13 @@ public function testSetNewBillingAddressWithUseForShippingParameter()
}

/**
* _security
* @magentoApiDataFixture Magento/Customer/_files/customer.php
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/customer/create_empty_cart.php
* @magentoApiDataFixture Magento/Checkout/_files/quote_with_address_saved.php
*
* @throws \Exception
*/
public function testSetBillingAddressToCustomerCart()
{
$maskedQuoteId = $this->getMaskedQuoteIdByReservedOrderId->execute('test_quote');
$maskedQuoteId = $this->getMaskedQuoteIdByReservedOrderId->execute('test_order_1');

$query = <<<QUERY
mutation {
Expand Down