Skip to content

Commit 7974821

Browse files
MC-18527: Merge release branch into 2.3-develop
- fix webapi tests
1 parent 7788cb5 commit 7974821

File tree

5 files changed

+21
-1
lines changed

5 files changed

+21
-1
lines changed

dev/tests/api-functional/_files/Magento/TestModuleUps/Model/Carrier.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77

88
namespace Magento\TestModuleUps\Model;
99

10-
use Magento\Framework\Async\ProxyDeferredFactory;
1110
use Magento\Framework\HTTP\AsyncClientInterface;
1211
use Magento\Framework\HTTP\ClientFactory;
1312
use Magento\Framework\Xml\Security;
13+
use Magento\Shipping\Model\Rate\Result\ProxyDeferredFactory;
1414
use Magento\Ups\Helper\Config;
1515

1616
/**

dev/tests/integration/testsuite/Magento/Downloadable/_files/product_downloadable_with_purchased_separately_links.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
use Magento\Catalog\Model\Product\Attribute\Source\Status as ProductStatus;
1010
use Magento\Downloadable\Model\Product\Type as ProductType;
1111
use Magento\Catalog\Model\Product\Visibility as ProductVisibility;
12+
use Magento\Downloadable\Api\DomainManagerInterface;
13+
14+
/** @var DomainManagerInterface $domainManager */
15+
$domainManager = Bootstrap::getObjectManager()->get(DomainManagerInterface::class);
16+
$domainManager->addDomains(['example.com']);
1217

1318
/**
1419
* @var \Magento\Catalog\Model\Product $product

dev/tests/integration/testsuite/Magento/Downloadable/_files/product_downloadable_with_purchased_separately_links_rollback.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77

88
use Magento\TestFramework\Helper\Bootstrap;
99
use Magento\Framework\Exception\NoSuchEntityException;
10+
use Magento\Downloadable\Api\DomainManagerInterface;
11+
12+
/** @var DomainManagerInterface $domainManager */
13+
$domainManager = Bootstrap::getObjectManager()->get(DomainManagerInterface::class);
14+
$domainManager->removeDomains(['example.com']);
1015

1116
/** @var \Magento\Framework\Registry $registry */
1217
$registry = Bootstrap::getObjectManager()->get(\Magento\Framework\Registry::class);

dev/tests/integration/testsuite/Magento/Downloadable/_files/product_downloadable_without_purchased_separately_links.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
use Magento\Catalog\Model\Product\Attribute\Source\Status as ProductStatus;
1010
use Magento\Downloadable\Model\Product\Type as ProductType;
1111
use Magento\Catalog\Model\Product\Visibility as ProductVisibility;
12+
use Magento\Downloadable\Api\DomainManagerInterface;
13+
14+
/** @var DomainManagerInterface $domainManager */
15+
$domainManager = Bootstrap::getObjectManager()->get(DomainManagerInterface::class);
16+
$domainManager->addDomains(['example.com']);
1217

1318
/**
1419
* @var \Magento\Catalog\Model\Product $product

dev/tests/integration/testsuite/Magento/Downloadable/_files/product_downloadable_without_purchased_separately_links_rollback.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77

88
use Magento\TestFramework\Helper\Bootstrap;
99
use Magento\Framework\Exception\NoSuchEntityException;
10+
use Magento\Downloadable\Api\DomainManagerInterface;
11+
12+
/** @var DomainManagerInterface $domainManager */
13+
$domainManager = Bootstrap::getObjectManager()->get(DomainManagerInterface::class);
14+
$domainManager->removeDomains(['example.com']);
1015

1116
/** @var \Magento\Framework\Registry $registry */
1217
$registry = Bootstrap::getObjectManager()->get(\Magento\Framework\Registry::class);

0 commit comments

Comments
 (0)