Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
engcom-Echo committed Sep 14, 2020
1 parent 862609f commit 740ce6b
Showing 1 changed file with 2 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,7 @@ protected function setUp(): void
)
->getMock();

$this->enumDataMapperMock = $this->getMockBuilder(DataMapperInterface::class)
->setConstructorArgs($this->map)
->getMock();
$this->enumDataMapperMock = $this->getMockForAbstractClass(DataMapperInterface::class);

$this->configDataMock = $this->getMockBuilder(DataInterface::class)
->getMock();
Expand All @@ -125,15 +123,7 @@ protected function setUp(): void
$this->queryFieldsMock = $this->getMockBuilder(QueryFields::class)
->getMock();

$this->typeConfigMock = $this->getMockBuilder(ConfigInterface::class)
->setConstructorArgs(
[
$this->configDataMock,
$this->configElementFactoryMock,
$this->queryFieldsMock,
]
)
->getMock();
$this->typeConfigMock = $this->getMockForAbstractClass(ConfigInterface::class);

$this->enumLookup = $this->objectManager->getObject(
EnumLookup::class,
Expand Down

0 comments on commit 740ce6b

Please sign in to comment.