Skip to content

Commit e113e37

Browse files
committed
minor change
1 parent 740ce6b commit e113e37

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

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

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,6 @@ class EnumLookupTest extends TestCase
8181
*/
8282
private $values = [];
8383

84-
/**
85-
* @inheritDoc
86-
*/
8784
protected function setUp(): void
8885
{
8986
$this->objectManager = new ObjectManager($this);
@@ -114,16 +111,11 @@ protected function setUp(): void
114111
)
115112
->getMock();
116113

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

128120
$this->enumLookup = $this->objectManager->getObject(
129121
EnumLookup::class,

0 commit comments

Comments
 (0)