diff --git a/dev/tests/functional/composer.json b/dev/tests/functional/composer.json index ab4bd87728a6789a1b2ec6f575ccb1cf1ce8b45c..e2e3d4ad289ce347e9c3fade95d09f606d490ea5 100644 --- a/dev/tests/functional/composer.json +++ b/dev/tests/functional/composer.json @@ -1,6 +1,6 @@ { "require": { - "magento/mtf": "1.0.0-rc10", + "magento/mtf": "1.0.0-rc11", "php": ">=5.4.0", "phpunit/phpunit": "4.1.0", "phpunit/phpunit-selenium": ">=1.2", diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Adminhtml/Category/Tree.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Adminhtml/Category/Tree.php index 6402bd1873a0d6a36a0f1656cc9d0fecb43cba11..851892347af536d4c1759d6d59f8d8439582257e 100644 --- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Adminhtml/Category/Tree.php +++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Adminhtml/Category/Tree.php @@ -121,9 +121,11 @@ class Tree extends Block protected function prepareFullCategoryPath(CatalogCategory $category) { $path = []; - $parentCategory = $category->getDataFieldConfig('parent_id')['source']->getParentCategory(); + $parentCategory = $category->hasData('parent_id') + ? $category->getDataFieldConfig('parent_id')['source']->getParentCategory() + : null; - if ($parentCategory != null) { + if ($parentCategory !== null) { $path = $this->prepareFullCategoryPath($parentCategory); } return array_filter(array_merge($path, [$category->getPath(), $category->getName()]));