4
4
* See COPYING.txt for license details.
5
5
*/
6
6
7
- // @codingStandardsIgnoreFile
8
-
9
7
namespace Magento \Eav \Test \Unit \Model ;
10
8
9
+ use Magento \Catalog \Api \Data \ProductAttributeMediaGalleryEntryInterface ;
11
10
use Magento \Eav \Model \TypeLocator ;
12
11
use Magento \Eav \Model \TypeLocator \ComplexType as ComplexTypeLocator ;
13
12
use Magento \Framework \TestFramework \Unit \Helper \ObjectManager ;
@@ -66,7 +65,10 @@ public function testGetType(
66
65
$ expected
67
66
) {
68
67
$ 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
+ );
70
72
71
73
$ this ->assertEquals ($ expected , $ type , 'Expected: ' . $ expected . 'but got: ' . $ type );
72
74
}
@@ -79,16 +81,22 @@ public function getTypeDataProvider()
79
81
{
80
82
$ serviceInterface = \Magento \Catalog \Api \Data \ProductInterface::class;
81
83
$ 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;
84
86
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
+ );
86
91
87
92
$ attribute ->expects ($ this ->any ())
88
93
->method ('getBackendModel ' )
89
94
->willReturn ($ mediaBackEndModelClass );
90
95
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
+ );
92
100
93
101
$ attributeNoBackendModel ->expects ($ this ->any ())
94
102
->method ('getBackendModel ' )
0 commit comments