6 declare(strict_types=1);
34 NotEavAttribute::class
48 $attributeMock = $this->getMockBuilder(AttributeAdapter::class)
49 ->disableOriginalConstructor()
50 ->setMethods([
'isEavAttribute',
'getAttributeCode'])
52 $attributeMock->expects($this->any())
53 ->method(
'isEavAttribute')
54 ->willReturn($isEavAttribute);
55 $attributeMock->expects($this->any())
56 ->method(
'getAttributeCode')
61 $this->resolver->getFieldName($attributeMock, $context)
71 [
'code',
true, [],
''],
72 [
'code',
false, [],
'code'],
testGetFieldName($attributeCode, $isEavAttribute, $context, $expected)