Skip to content

Commit c292081

Browse files
committed
Merge remote-tracking branch 'mainline/2.3-develop' into MAGETWO-66191
2 parents a71bd00 + c10eacb commit c292081

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

app/code/Magento/Eav/Test/Unit/Model/TypeLocatorTest.php

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@
44
* See COPYING.txt for license details.
55
*/
66

7-
// @codingStandardsIgnoreFile
8-
97
namespace Magento\Eav\Test\Unit\Model;
108

9+
use Magento\Catalog\Api\Data\ProductAttributeMediaGalleryEntryInterface;
1110
use Magento\Eav\Model\TypeLocator;
1211
use Magento\Eav\Model\TypeLocator\ComplexType as ComplexTypeLocator;
1312
use Magento\Framework\TestFramework\Unit\Helper\ObjectManager;
@@ -66,7 +65,10 @@ public function testGetType(
6665
$expected
6766
) {
6867
$this->complexType->expects($this->once())->method('getType')->willReturn($expected);
69-
$type = $this->customAttributeTypeLocator->getType($attributeCode, $serviceEntityTypeMapData[$serviceClass]);
68+
$type = $this->customAttributeTypeLocator->getType(
69+
$attributeCode,
70+
$serviceEntityTypeMapData[$serviceClass]
71+
);
7072

7173
$this->assertEquals($expected, $type, 'Expected: ' . $expected . 'but got: ' . $type);
7274
}
@@ -79,16 +81,22 @@ public function getTypeDataProvider()
7981
{
8082
$serviceInterface = \Magento\Catalog\Api\Data\ProductInterface::class;
8183
$eavEntityType = 'catalog_product';
82-
$mediaBackEndModelClass = \Magento\Catalog\Api\Data\ProductAttributeMediaGalleryEntryInterface::class;
83-
$mediaAttributeDataInterface = \Magento\Catalog\Api\Data\ProductAttributeMediaGalleryEntryInterface::class;
84+
$mediaBackEndModelClass = ProductAttributeMediaGalleryEntryInterface::class;
85+
$mediaAttributeDataInterface = ProductAttributeMediaGalleryEntryInterface::class;
8486

85-
$attribute = $this->createPartialMock(\Magento\Catalog\Model\ResourceModel\Eav\Attribute::class, ['getBackendModel']);
87+
$attribute = $this->createPartialMock(
88+
\Magento\Catalog\Model\ResourceModel\Eav\Attribute::class,
89+
['getBackendModel']
90+
);
8691

8792
$attribute->expects($this->any())
8893
->method('getBackendModel')
8994
->willReturn($mediaBackEndModelClass);
9095

91-
$attributeNoBackendModel = $this->createPartialMock(\Magento\Catalog\Model\ResourceModel\Eav\Attribute::class, ['getBackendModel', 'getFrontendInput']);
96+
$attributeNoBackendModel = $this->createPartialMock(
97+
\Magento\Catalog\Model\ResourceModel\Eav\Attribute::class,
98+
['getBackendModel', 'getFrontendInput']
99+
);
92100

93101
$attributeNoBackendModel->expects($this->any())
94102
->method('getBackendModel')

0 commit comments

Comments
 (0)