Skip to content

Commit 0887c01

Browse files
author
Allan Paiste
committed
More code styling fixes
1 parent ed35ab9 commit 0887c01

File tree

1 file changed

+7
-2
lines changed
  • app/code/Magento/Catalog/Test/Unit/Controller/Adminhtml/Category

1 file changed

+7
-2
lines changed

app/code/Magento/Catalog/Test/Unit/Controller/Adminhtml/Category/SaveTest.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -598,10 +598,14 @@ public function testImagePreprocessingShouldSetAttributesWithImageBackendToFalse
598598
{
599599
$eavConfig = $this->getMock(\Magento\Eav\Model\Config::class, ['getEntityType'], [], '', false);
600600

601+
$imageBackendModel = $this->objectManager->getObject(
602+
\Magento\Catalog\Model\Category\Attribute\Backend\Image::class
603+
);
604+
601605
$collection = new \Magento\Framework\DataObject(['attribute_collection' => [
602606
new \Magento\Framework\DataObject([
603607
'attribute_code' => 'attribute1',
604-
'backend' => $this->objectManager->getObject(\Magento\Catalog\Model\Category\Attribute\Backend\Image::class)
608+
'backend' => $imageBackendModel
605609
]),
606610
new \Magento\Framework\DataObject([
607611
'attribute_code' => 'attribute2',
@@ -631,7 +635,8 @@ public function testImagePreprocessingShouldNotSetValueToFalseWhenValueSet()
631635
$eavConfig = $this->getMock(\Magento\Eav\Model\Config::class, ['getEntityType'], [], '', false);
632636

633637
$imageBackendModel = $this->objectManager->getObject(
634-
\Magento\Catalog\Model\Category\Attribute\Backend\Image::class);
638+
\Magento\Catalog\Model\Category\Attribute\Backend\Image::class
639+
);
635640

636641
$collection = new \Magento\Framework\DataObject(['attribute_collection' => [
637642
new \Magento\Framework\DataObject([

0 commit comments

Comments
 (0)