mirror of
https://github.com/Codappix/search_core.git
synced 2024-11-27 00:56:12 +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');
|
||||
$this->subject->expects($this->once())
|
||||
->method('outputLine')
|
||||
->with('Indice pages was deleted.');
|
||||
->with('Indice pages was flushed.');
|
||||
$this->indexerFactory->expects($this->once())
|
||||
->method('getIndexer')
|
||||
->with('pages')
|
||||
|
|
|
@ -76,7 +76,7 @@ class SearchControllerTest extends AbstractUnitTestCase
|
|||
]
|
||||
]);
|
||||
|
||||
$this->subject->initializeResultsAction();
|
||||
$this->subject->initializeSearchAction();
|
||||
$this->assertInstanceOf(
|
||||
SearchRequest::class,
|
||||
$this->request->getArgument('searchRequest'),
|
||||
|
@ -100,7 +100,7 @@ class SearchControllerTest extends AbstractUnitTestCase
|
|||
]
|
||||
]);
|
||||
|
||||
$this->subject->initializeResultsAction();
|
||||
$this->subject->initializeSearchAction();
|
||||
$this->assertInstanceOf(
|
||||
SearchRequest::class,
|
||||
$this->request->getArgument('searchRequest'),
|
||||
|
@ -120,7 +120,7 @@ class SearchControllerTest extends AbstractUnitTestCase
|
|||
{
|
||||
$this->inject($this->subject, 'settings', ['searching' => []]);
|
||||
|
||||
$this->subject->initializeResultsAction();
|
||||
$this->subject->initializeSearchAction();
|
||||
$this->assertFalse(
|
||||
$this->request->hasArgument('searchRequest'),
|
||||
'Search request should not exist.'
|
||||
|
|
Loading…
Reference in a new issue