6 declare(strict_types=1);
19 customAttributeMetadata(attributes:[
21 entity_type:
"catalog_category" 22 entity_type:
"catalog_product" 34 $this->expectException(\Exception::class);
35 $this->expectExceptionMessage(
'GraphQL response contains errors: There' .
' ' .
36 'can be only one input field named "entity_type"');
45 customAttributeMetadata(attributes:[
59 $this->expectException(\Exception::class);
60 $this->expectExceptionMessage(
'GraphQL response contains errors: Missing attribute_code/entity_type for the ' .
61 'input Empty AttributeInput.');
70 customAttributeMetadata(attributes:[
84 $this->expectException(\Exception::class);
85 $this->expectExceptionMessage(
'GraphQL response contains errors: Missing entity_type for the input' .
86 ' attribute_code: sku.');
96 customAttributeMetadata(attributes:[
98 entity_type:
"catalog_category" 110 $this->expectException(\Exception::class);
111 $this->expectExceptionMessage(
'GraphQL response contains errors: Missing attribute_code for the input ' .
112 'entity_type: catalog_category.');
122 customAttributeMetadata(attributes:[
125 entity_type:
"invalid" 137 $this->expectException(\Exception::class);
139 $this->expectExceptionMessage(
'Invalid entity_type specified: invalid');
graphQlQuery(string $query, array $variables=[], string $operationName='', array $headers=[])