Skip to content

Commit 83f562d

Browse files
committed
AC-14095: CNS WebApi Broken and Failed tests
1 parent 085ea49 commit 83f562d

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

app/code/Magento/Downloadable/Test/Fixture/DownloadableProduct.php

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
use Magento\TestFramework\Fixture\Api\DataMerger;
2020
use Magento\TestFramework\Fixture\Api\ServiceFactory;
2121
use Magento\TestFramework\Fixture\Data\ProcessorInterface;
22+
use Magento\Downloadable\Api\DomainManagerInterface;
2223

2324
class DownloadableProduct extends Product
2425
{
@@ -61,7 +62,8 @@ public function __construct(
6162
private readonly ProductRepositoryInterface $productRepository,
6263
private readonly DirectoryList $directoryList,
6364
private readonly Link $link,
64-
private readonly File $file
65+
private readonly File $file,
66+
private readonly DomainManagerInterface $domainManager
6567
) {
6668
parent::__construct($serviceFactory, $dataProcessor, $dataMerger, $productRepository);
6769
}
@@ -74,6 +76,15 @@ public function __construct(
7476
*/
7577
public function apply(array $data = []): ?DataObject
7678
{
79+
$this->domainManager->addDomains(
80+
[
81+
'example.com',
82+
'www.example.com',
83+
'www.sample.example.com',
84+
'google.com'
85+
]
86+
);
87+
7788
return parent::apply($this->prepareData($data));
7889
}
7990

0 commit comments

Comments
 (0)