Skip to content

Commit 37f7aa3

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

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

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

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,26 @@ public function apply(array $data = []): ?DataObject
7979
$this->domainManager->addDomains(
8080
[
8181
'example.com',
82-
'www.example.com',
83-
'www.sample.example.com',
84-
'google.com'
82+
'www.example.com'
8583
]
8684
);
8785

8886
return parent::apply($this->prepareData($data));
8987
}
9088

89+
public function revert(DataObject $data): void
90+
{
91+
$this->domainManager->removeDomains(
92+
[
93+
'example.com',
94+
'www.example.com',
95+
]
96+
);
97+
98+
parent::revert($data);
99+
100+
}
101+
91102
/**
92103
* Prepare product data
93104
*

0 commit comments

Comments
 (0)