From f95723fff74cb62f7d37a9f68270f514c896c20c Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Sat, 29 Dec 2018 19:23:46 +0100 Subject: [PATCH] TASK: Fix unit tests --- Tests/Unit/Command/IndexCommandControllerTest.php | 2 +- Tests/Unit/Controller/SearchControllerTest.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Tests/Unit/Command/IndexCommandControllerTest.php b/Tests/Unit/Command/IndexCommandControllerTest.php index 7a18f05..d722f6d 100644 --- a/Tests/Unit/Command/IndexCommandControllerTest.php +++ b/Tests/Unit/Command/IndexCommandControllerTest.php @@ -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') diff --git a/Tests/Unit/Controller/SearchControllerTest.php b/Tests/Unit/Controller/SearchControllerTest.php index ba1d2af..0357b86 100644 --- a/Tests/Unit/Controller/SearchControllerTest.php +++ b/Tests/Unit/Controller/SearchControllerTest.php @@ -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.'