Skip to content

Commit c985f7e

Browse files
committed
[TASK] Update unit tests to match search packages refactoring
1 parent 966c04b commit c985f7e

3 files changed

Lines changed: 9 additions & 112 deletions

File tree

Tests/Unit/Eel/ElasticSearchHelperTest.php

Lines changed: 0 additions & 69 deletions
This file was deleted.

Tests/Unit/Eel/ElasticSearchQueryBuilderTest.php

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,24 @@ public function setUp() {
3434

3535
$mockWorkspace->expects($this->any())->method('getName')->will($this->returnValue('user-foo'));
3636

37-
$this->queryBuilder = new ElasticSearchQueryBuilder($node);
37+
$this->queryBuilder = new ElasticSearchQueryBuilder();
38+
$this->queryBuilder->query($node);
3839
}
3940

40-
4141
/**
4242
* @test
4343
*/
4444
public function basicRequestStructureTakesContextNodeIntoAccount() {
4545
$expected = array(
4646
'query' => array (
4747
'filtered' => array (
48-
'query' => array (),
48+
'query' => array (
49+
'bool' => array(
50+
'must' => array(
51+
array('match_all' => array())
52+
)
53+
)
54+
),
4955
'filter' => array (
5056
'bool' => array (
5157
'must' => array (

Tests/Unit/Eel/FulltextHelperTest.php

Lines changed: 0 additions & 40 deletions
This file was deleted.

0 commit comments

Comments
 (0)