We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83f562d commit 37f7aa3Copy full SHA for 37f7aa3
app/code/Magento/Downloadable/Test/Fixture/DownloadableProduct.php
@@ -79,15 +79,26 @@ public function apply(array $data = []): ?DataObject
79
$this->domainManager->addDomains(
80
[
81
'example.com',
82
- 'www.example.com',
83
- 'www.sample.example.com',
84
- 'google.com'
+ 'www.example.com'
85
]
86
);
87
88
return parent::apply($this->prepareData($data));
89
}
90
+ public function revert(DataObject $data): void
+ {
91
+ $this->domainManager->removeDomains(
92
+ [
93
+ 'example.com',
94
+ 'www.example.com',
95
+ ]
96
+ );
97
+
98
+ parent::revert($data);
99
100
+ }
101
102
/**
103
* Prepare product data
104
*
0 commit comments