TASK: Fix unit tests

This commit is contained in:
Daniel Siepmann 2018-12-29 19:23:46 +01:00
parent 831da6a4e4
commit f95723fff7
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4
2 changed files with 4 additions and 4 deletions

View file

@ -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')

View file

@ -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.'