[TASK] Update unit tests for renaming controller initialize

This commit is contained in:
Benjamin Serfhos 2018-10-30 09:18:29 +01:00
parent ef43bc1674
commit 615d24b126

View file

@ -76,7 +76,7 @@ class SearchControllerTest extends AbstractUnitTestCase
] ]
]); ]);
$this->subject->initializeSearchAction(); $this->subject->initializeResultsAction();
$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->initializeSearchAction(); $this->subject->initializeResultsAction();
$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->initializeSearchAction(); $this->subject->initializeResultsAction();
$this->assertFalse( $this->assertFalse(
$this->request->hasArgument('searchRequest'), $this->request->hasArgument('searchRequest'),
'Search request should not exist.' 'Search request should not exist.'