From 4f7ccef2f6335b84dd9ac894e2f8752078532aa8 Mon Sep 17 00:00:00 2001 From: Benjamin Serfhos Date: Tue, 30 Oct 2018 13:33:14 +0100 Subject: [PATCH] [TASK] Apply CGL changes --- Tests/Unit/Command/IndexCommandControllerTest.php | 5 ++++- Tests/Unit/Domain/Search/QueryFactoryTest.php | 7 ++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Tests/Unit/Command/IndexCommandControllerTest.php b/Tests/Unit/Command/IndexCommandControllerTest.php index e3c1e77..7a18f05 100644 --- a/Tests/Unit/Command/IndexCommandControllerTest.php +++ b/Tests/Unit/Command/IndexCommandControllerTest.php @@ -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'); } diff --git a/Tests/Unit/Domain/Search/QueryFactoryTest.php b/Tests/Unit/Domain/Search/QueryFactoryTest.php index 6b11d1a..e647003 100644 --- a/Tests/Unit/Domain/Search/QueryFactoryTest.php +++ b/Tests/Unit/Domain/Search/QueryFactoryTest.php @@ -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 + ); } /**