File tree 1 file changed +2
-12
lines changed
lib/internal/Magento/Framework/GraphQl/Test/Unit/Query
1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -114,9 +114,7 @@ protected function setUp(): void
114
114
)
115
115
->getMock ();
116
116
117
- $ this ->enumDataMapperMock = $ this ->getMockBuilder (DataMapperInterface::class)
118
- ->setConstructorArgs ($ this ->map )
119
- ->getMock ();
117
+ $ this ->enumDataMapperMock = $ this ->getMockForAbstractClass (DataMapperInterface::class);
120
118
121
119
$ this ->configDataMock = $ this ->getMockBuilder (DataInterface::class)
122
120
->getMock ();
@@ -125,15 +123,7 @@ protected function setUp(): void
125
123
$ this ->queryFieldsMock = $ this ->getMockBuilder (QueryFields::class)
126
124
->getMock ();
127
125
128
- $ this ->typeConfigMock = $ this ->getMockBuilder (ConfigInterface::class)
129
- ->setConstructorArgs (
130
- [
131
- $ this ->configDataMock ,
132
- $ this ->configElementFactoryMock ,
133
- $ this ->queryFieldsMock ,
134
- ]
135
- )
136
- ->getMock ();
126
+ $ this ->typeConfigMock = $ this ->getMockForAbstractClass (ConfigInterface::class);
137
127
138
128
$ this ->enumLookup = $ this ->objectManager ->getObject (
139
129
EnumLookup::class,
You can’t perform that action at this time.
0 commit comments