Skip to content
Snippets Groups Projects
Commit 149fe691 authored by Leonid Poluyanov's avatar Leonid Poluyanov
Browse files

MAGETWO-60037: User is able to create empty URL key for category which leads to numerous errors

parent 08d5758c
Branches
Tags
No related merge requests found
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
*/ */
namespace Magento\CatalogUrlRewrite\Observer; namespace Magento\CatalogUrlRewrite\Observer;
use Doctrine\Instantiator\Exception\InvalidArgumentException;
use Magento\Catalog\Model\Category; use Magento\Catalog\Model\Category;
use Magento\CatalogUrlRewrite\Model\CategoryUrlPathGenerator; use Magento\CatalogUrlRewrite\Model\CategoryUrlPathGenerator;
use Magento\CatalogUrlRewrite\Service\V1\StoreViewService; use Magento\CatalogUrlRewrite\Service\V1\StoreViewService;
......
...@@ -94,7 +94,7 @@ class CategoryUrlRewriteGeneratorTest extends \PHPUnit_Framework_TestCase ...@@ -94,7 +94,7 @@ class CategoryUrlRewriteGeneratorTest extends \PHPUnit_Framework_TestCase
* @magentoDbIsolation enabled * @magentoDbIsolation enabled
* @magentoAppIsolation enabled * @magentoAppIsolation enabled
* @param string $urlKey * @param string $urlKey
* @dataProvider IncorrectUrlRewritesDataProvider * @dataProvider incorrectUrlRewritesDataProvider
*/ */
public function testGenerateUrlRewritesWithIncorrectUrlKey($urlKey) public function testGenerateUrlRewritesWithIncorrectUrlKey($urlKey)
{ {
...@@ -112,7 +112,7 @@ class CategoryUrlRewriteGeneratorTest extends \PHPUnit_Framework_TestCase ...@@ -112,7 +112,7 @@ class CategoryUrlRewriteGeneratorTest extends \PHPUnit_Framework_TestCase
/** /**
* @return array * @return array
*/ */
public function IncorrectUrlRewritesDataProvider() public function incorrectUrlRewritesDataProvider()
{ {
return [ return [
['#'], ['#'],
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment