Skip to content

Commit c92df5c

Browse files
committed
MAGETWO-54211: Downloadable product has direct link in category after update applied
1 parent e057867 commit c92df5c

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

app/code/Magento/CatalogUrlRewrite/Test/Unit/Observer/ProductProcessUrlRewriteSavingObserverTest.php

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
use Magento\UrlRewrite\Service\V1\Data\UrlRewrite;
1414

1515
/**
16-
* Class AfterImportDataObserverTest
16+
* Class ProductProcessUrlRewriteSavingObserverTest
1717
*
1818
* @SuppressWarnings(PHPMD.TooManyFields)
1919
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
2020
*/
21-
class AfterImportDataObserverTest extends \PHPUnit_Framework_TestCase
21+
class ProductProcessUrlRewriteSavingObserverTest extends \PHPUnit_Framework_TestCase
2222
{
2323
/**
2424
* @var \Magento\UrlRewrite\Model\UrlPersistInterface|\PHPUnit_Framework_MockObject_MockObject
@@ -184,15 +184,14 @@ public function testExecuteUrlKey(
184184
$expectedDeleteCount,
185185
$expectedReplaceCount
186186
) {
187-
188187
$this->product->expects($this->any())
189188
->method('dataHasChangedFor')
190189
->will($this->returnValueMap(
191-
[
192-
['visibility', $isChangedVisibility],
193-
['url_key', $isChangedUrlKey]
194-
]
195-
));
190+
[
191+
['visibility', $isChangedVisibility],
192+
['url_key', $isChangedUrlKey]
193+
]
194+
));
196195

197196
$this->product->expects($this->any())
198197
->method('getIsChangedWebsites')

0 commit comments

Comments
 (0)