mirror of
https://github.com/Codappix/search_core.git
synced 2024-12-23 12:16:09 +01:00
[TASK] Finetune QueryFactoryTest based on changes
This commit is contained in:
parent
b63168b8b7
commit
2e327db47c
1 changed files with 10 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue