[BUGFIX] Remove _all from unit tests

This commit is contained in:
Benjamin Serfhos 2018-10-26 10:49:43 +02:00
parent 23f3d0df92
commit b8de35adee
3 changed files with 7 additions and 5 deletions

View file

@ -126,7 +126,9 @@ class QueryFactory
try { try {
$fieldsToQuery = GeneralUtility::trimExplode(',', $this->configuration->get('searching.fields.query'), true); $fieldsToQuery = GeneralUtility::trimExplode(',', $this->configuration->get('searching.fields.query'), true);
if ($fieldsToQuery !== []) {
$matchExpression['fields'] = $fieldsToQuery; $matchExpression['fields'] = $fieldsToQuery;
}
} catch (InvalidArgumentException $e) { } catch (InvalidArgumentException $e) {
// Nothing configured // Nothing configured
} }

View file

@ -108,7 +108,7 @@ class IndexCommandControllerTest extends AbstractUnitTestCase
->will($this->returnValue($indexerMock)); ->will($this->returnValue($indexerMock));
$indexerMock->expects($this->once()) $indexerMock->expects($this->once())
->method('delete'); ->method('deleteDocuments');
$this->subject->deleteCommand('allowedTable'); $this->subject->deleteCommand('allowedTable');
} }

View file

@ -298,7 +298,7 @@ class QueryFactoryTest extends AbstractUnitTestCase
['searching.fieldValueFactor'] ['searching.fieldValueFactor']
) )
->will($this->onConsecutiveCalls( ->will($this->onConsecutiveCalls(
'_all', '',
[ [
'search_title' => 3, 'search_title' => 3,
'search_abstract' => 1.5, 'search_abstract' => 1.5,
@ -355,7 +355,7 @@ class QueryFactoryTest extends AbstractUnitTestCase
['searching.fieldValueFactor'] ['searching.fieldValueFactor']
) )
->will($this->onConsecutiveCalls( ->will($this->onConsecutiveCalls(
'_all', '',
$this->throwException(new InvalidArgumentException), $this->throwException(new InvalidArgumentException),
$this->throwException(new InvalidArgumentException), $this->throwException(new InvalidArgumentException),
$this->throwException(new InvalidArgumentException), $this->throwException(new InvalidArgumentException),
@ -526,7 +526,7 @@ class QueryFactoryTest extends AbstractUnitTestCase
['searching.fieldValueFactor'] ['searching.fieldValueFactor']
) )
->will($this->onConsecutiveCalls( ->will($this->onConsecutiveCalls(
'_all', '',
$this->throwException(new InvalidArgumentException), $this->throwException(new InvalidArgumentException),
$this->throwException(new InvalidArgumentException), $this->throwException(new InvalidArgumentException),
[ [