mirror of
https://github.com/Codappix/search_core.git
synced 2024-11-27 03:16:12 +01:00
[BUGFIX] Remove _all from unit tests
This commit is contained in:
parent
23f3d0df92
commit
b8de35adee
3 changed files with 7 additions and 5 deletions
|
@ -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);
|
||||||
$matchExpression['fields'] = $fieldsToQuery;
|
if ($fieldsToQuery !== []) {
|
||||||
|
$matchExpression['fields'] = $fieldsToQuery;
|
||||||
|
}
|
||||||
} catch (InvalidArgumentException $e) {
|
} catch (InvalidArgumentException $e) {
|
||||||
// Nothing configured
|
// Nothing configured
|
||||||
}
|
}
|
||||||
|
|
|
@ -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');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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),
|
||||||
[
|
[
|
||||||
|
|
Loading…
Reference in a new issue