From 2e327db47c24bc2b3a56c73cbb1f7ccd8c50130d Mon Sep 17 00:00:00 2001 From: Benjamin Serfhos Date: Tue, 30 Oct 2018 10:03:10 +0100 Subject: [PATCH] [TASK] Finetune QueryFactoryTest based on changes --- Tests/Unit/Domain/Search/QueryFactoryTest.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Tests/Unit/Domain/Search/QueryFactoryTest.php b/Tests/Unit/Domain/Search/QueryFactoryTest.php index 45b77a9..6b11d1a 100644 --- a/Tests/Unit/Domain/Search/QueryFactoryTest.php +++ b/Tests/Unit/Domain/Search/QueryFactoryTest.php @@ -28,6 +28,7 @@ use Codappix\SearchCore\Domain\Model\FacetRequest; use Codappix\SearchCore\Domain\Model\SearchRequest; use Codappix\SearchCore\Domain\Search\QueryFactory; use Codappix\SearchCore\Tests\Unit\AbstractUnitTestCase; +use TYPO3\CMS\Extbase\Object\ObjectManagerInterface; class QueryFactoryTest extends AbstractUnitTestCase { @@ -41,13 +42,21 @@ class QueryFactoryTest extends AbstractUnitTestCase */ protected $configuration; + /** + * @var ObjectManagerInterface + */ + protected $objectManager; + public function setUp() { parent::setUp(); $this->configuration = $this->getMockBuilder(ConfigurationContainerInterface::class)->getMock(); $configurationUtility = new ConfigurationUtility(); - $this->subject = new QueryFactory($this->getMockedLogger(), $this->configuration, $configurationUtility); + $this->objectManager = $this->getMockBuilder(ObjectManagerInterface::class) + ->disableOriginalConstructor() + ->getMock(); + $this->subject = new QueryFactory($this->getMockedLogger(), $this->configuration, $configurationUtility, $this->objectManager); } /**