Skip to content

Commit 08d5758

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

File tree

1 file changed

+2
-1
lines changed
  • dev/tests/integration/testsuite/Magento/Catalog/Model/Indexer/Category

1 file changed

+2
-1
lines changed

dev/tests/integration/testsuite/Magento/Catalog/Model/Indexer/Category/ProductTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ protected function setUp()
4141
}
4242

4343
/**
44+
* @magentoAppArea adminhtml
4445
* @magentoDataFixture Magento/Catalog/_files/indexer_catalog_category.php
4546
* @magentoDbIsolation enabled
4647
*/
@@ -214,7 +215,7 @@ protected function getCategories($count)
214215
\Magento\Catalog\Model\Category::class
215216
);
216217

217-
$result = $category->getCollection()->getItems();
218+
$result = $category->getCollection()->addAttributeToSelect('name')->getItems();
218219
$result = array_slice($result, 2);
219220

220221
return array_slice($result, 0, $count);

0 commit comments

Comments
 (0)