Skip to content

Commit 149fe69

Browse files
committed
MAGETWO-60037: User is able to create empty URL key for category which leads to numerous errors
1 parent 08d5758 commit 149fe69

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

app/code/Magento/CatalogUrlRewrite/Observer/CategoryUrlPathAutogeneratorObserver.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
*/
66
namespace Magento\CatalogUrlRewrite\Observer;
77

8-
use Doctrine\Instantiator\Exception\InvalidArgumentException;
98
use Magento\Catalog\Model\Category;
109
use Magento\CatalogUrlRewrite\Model\CategoryUrlPathGenerator;
1110
use Magento\CatalogUrlRewrite\Service\V1\StoreViewService;

dev/tests/integration/testsuite/Magento/CatalogUrlRewrite/Model/CategoryUrlRewriteGeneratorTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public function testGenerateUrlRewritesWithSaveHistory()
9494
* @magentoDbIsolation enabled
9595
* @magentoAppIsolation enabled
9696
* @param string $urlKey
97-
* @dataProvider IncorrectUrlRewritesDataProvider
97+
* @dataProvider incorrectUrlRewritesDataProvider
9898
*/
9999
public function testGenerateUrlRewritesWithIncorrectUrlKey($urlKey)
100100
{
@@ -112,7 +112,7 @@ public function testGenerateUrlRewritesWithIncorrectUrlKey($urlKey)
112112
/**
113113
* @return array
114114
*/
115-
public function IncorrectUrlRewritesDataProvider()
115+
public function incorrectUrlRewritesDataProvider()
116116
{
117117
return [
118118
['#'],

0 commit comments

Comments
 (0)