File tree 1 file changed +5
-13
lines changed
lib/internal/Magento/Framework/GraphQl/Test/Unit/Query
1 file changed +5
-13
lines changed Original file line number Diff line number Diff line change @@ -81,9 +81,6 @@ class EnumLookupTest extends TestCase
81
81
*/
82
82
private $ values = [];
83
83
84
- /**
85
- * @inheritDoc
86
- */
87
84
protected function setUp (): void
88
85
{
89
86
$ this ->objectManager = new ObjectManager ($ this );
@@ -114,16 +111,11 @@ protected function setUp(): void
114
111
)
115
112
->getMock ();
116
113
117
- $ this ->enumDataMapperMock = $ this ->getMockForAbstractClass (DataMapperInterface::class);
118
-
119
- $ this ->configDataMock = $ this ->getMockBuilder (DataInterface::class)
120
- ->getMock ();
121
- $ this ->configElementFactoryMock = $ this ->getMockBuilder (ConfigElementFactoryInterface::class)
122
- ->getMock ();
123
- $ this ->queryFieldsMock = $ this ->getMockBuilder (QueryFields::class)
124
- ->getMock ();
125
-
126
- $ this ->typeConfigMock = $ this ->getMockForAbstractClass (ConfigInterface::class);
114
+ $ this ->enumDataMapperMock = $ this ->createMock (DataMapperInterface::class);
115
+ $ this ->configDataMock = $ this ->createMock (DataInterface::class);
116
+ $ this ->configElementFactoryMock = $ this ->createMock (ConfigElementFactoryInterface::class);
117
+ $ this ->queryFieldsMock = $ this ->createMock (QueryFields::class);
118
+ $ this ->typeConfigMock = $ this ->createMock (ConfigInterface::class);
127
119
128
120
$ this ->enumLookup = $ this ->objectManager ->getObject (
129
121
EnumLookup::class,
You can’t perform that action at this time.
0 commit comments