[TASK] Apply CGL changes

This commit is contained in:
Benjamin Serfhos 2018-10-30 13:33:14 +01:00
parent 2e327db47c
commit 4f7ccef2f6
2 changed files with 10 additions and 2 deletions

View file

@ -234,7 +234,10 @@ class IndexCommandControllerTest extends AbstractUnitTestCase
$this->indexerFactory->expects($this->exactly(2))
->method('getIndexer')
->withConsecutive(['nonExisting'], ['allowedTable'])
->will($this->onConsecutiveCalls($this->throwException(new NoMatchingIndexerException), $this->returnValue($indexerMock)));
->will($this->onConsecutiveCalls(
$this->throwException(new NoMatchingIndexerException),
$this->returnValue($indexerMock)
));
$this->subject->indexCommand('nonExisting, allowedTable');
}

View file

@ -56,7 +56,12 @@ class QueryFactoryTest extends AbstractUnitTestCase
$this->objectManager = $this->getMockBuilder(ObjectManagerInterface::class)
->disableOriginalConstructor()
->getMock();
$this->subject = new QueryFactory($this->getMockedLogger(), $this->configuration, $configurationUtility, $this->objectManager);
$this->subject = new QueryFactory(
$this->getMockedLogger(),
$this->configuration,
$configurationUtility,
$this->objectManager
);
}
/**