Skip to content

Commit 740ce6b

Browse files
committed
minor change
1 parent 862609f commit 740ce6b

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

lib/internal/Magento/Framework/GraphQl/Test/Unit/Query/EnumLookupTest.php

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,7 @@ protected function setUp(): void
114114
)
115115
->getMock();
116116

117-
$this->enumDataMapperMock = $this->getMockBuilder(DataMapperInterface::class)
118-
->setConstructorArgs($this->map)
119-
->getMock();
117+
$this->enumDataMapperMock = $this->getMockForAbstractClass(DataMapperInterface::class);
120118

121119
$this->configDataMock = $this->getMockBuilder(DataInterface::class)
122120
->getMock();
@@ -125,15 +123,7 @@ protected function setUp(): void
125123
$this->queryFieldsMock = $this->getMockBuilder(QueryFields::class)
126124
->getMock();
127125

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);
137127

138128
$this->enumLookup = $this->objectManager->getObject(
139129
EnumLookup::class,

0 commit comments

Comments
 (0)