Skip to content

Commit 0f9cd5e

Browse files
author
Dmytro Aponasenko
committed
MTA-1247: Sync qmt repository with mainline - Sprint 2
1 parent edfc106 commit 0f9cd5e

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

dev/tests/functional/composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"require": {
3-
"magento/mtf": "1.0.0-rc10",
3+
"magento/mtf": "1.0.0-rc11",
44
"php": ">=5.4.0",
55
"phpunit/phpunit": "4.1.0",
66
"phpunit/phpunit-selenium": ">=1.2",

dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Adminhtml/Category/Tree.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,11 @@ public function selectCategory(FixtureInterface $category, $fullPath = true)
121121
protected function prepareFullCategoryPath(CatalogCategory $category)
122122
{
123123
$path = [];
124-
$parentCategory = $category->getDataFieldConfig('parent_id')['source']->getParentCategory();
124+
$parentCategory = $category->hasData('parent_id')
125+
? $category->getDataFieldConfig('parent_id')['source']->getParentCategory()
126+
: null;
125127

126-
if ($parentCategory != null) {
128+
if ($parentCategory !== null) {
127129
$path = $this->prepareFullCategoryPath($parentCategory);
128130
}
129131
return array_filter(array_merge($path, [$category->getPath(), $category->getName()]));

0 commit comments

Comments
 (0)