mirror of
https://github.com/Codappix/search_core.git
synced 2024-11-23 07:36:10 +01:00
TASK: Fix unit tests
This commit is contained in:
parent
831da6a4e4
commit
f95723fff7
2 changed files with 4 additions and 4 deletions
|
@ -131,7 +131,7 @@ class IndexCommandControllerTest extends AbstractUnitTestCase
|
||||||
->willReturn('pages');
|
->willReturn('pages');
|
||||||
$this->subject->expects($this->once())
|
$this->subject->expects($this->once())
|
||||||
->method('outputLine')
|
->method('outputLine')
|
||||||
->with('Indice pages was deleted.');
|
->with('Indice pages was flushed.');
|
||||||
$this->indexerFactory->expects($this->once())
|
$this->indexerFactory->expects($this->once())
|
||||||
->method('getIndexer')
|
->method('getIndexer')
|
||||||
->with('pages')
|
->with('pages')
|
||||||
|
|
|
@ -76,7 +76,7 @@ class SearchControllerTest extends AbstractUnitTestCase
|
||||||
]
|
]
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$this->subject->initializeResultsAction();
|
$this->subject->initializeSearchAction();
|
||||||
$this->assertInstanceOf(
|
$this->assertInstanceOf(
|
||||||
SearchRequest::class,
|
SearchRequest::class,
|
||||||
$this->request->getArgument('searchRequest'),
|
$this->request->getArgument('searchRequest'),
|
||||||
|
@ -100,7 +100,7 @@ class SearchControllerTest extends AbstractUnitTestCase
|
||||||
]
|
]
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$this->subject->initializeResultsAction();
|
$this->subject->initializeSearchAction();
|
||||||
$this->assertInstanceOf(
|
$this->assertInstanceOf(
|
||||||
SearchRequest::class,
|
SearchRequest::class,
|
||||||
$this->request->getArgument('searchRequest'),
|
$this->request->getArgument('searchRequest'),
|
||||||
|
@ -120,7 +120,7 @@ class SearchControllerTest extends AbstractUnitTestCase
|
||||||
{
|
{
|
||||||
$this->inject($this->subject, 'settings', ['searching' => []]);
|
$this->inject($this->subject, 'settings', ['searching' => []]);
|
||||||
|
|
||||||
$this->subject->initializeResultsAction();
|
$this->subject->initializeSearchAction();
|
||||||
$this->assertFalse(
|
$this->assertFalse(
|
||||||
$this->request->hasArgument('searchRequest'),
|
$this->request->hasArgument('searchRequest'),
|
||||||
'Search request should not exist.'
|
'Search request should not exist.'
|
||||||
|
|
Loading…
Reference in a new issue