File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ public function test_update_adds_objects_to_index()
18
18
[
19
19
'update ' => [
20
20
'_id ' => 1 ,
21
- '_index ' => 'scout ' ,
21
+ '_index ' => 'table ' ,
22
22
'_type ' => 'table ' ,
23
23
]
24
24
],
@@ -29,7 +29,7 @@ public function test_update_adds_objects_to_index()
29
29
]
30
30
]);
31
31
32
- $ engine = new ElasticsearchEngine ($ client, ' scout ' );
32
+ $ engine = new ElasticsearchEngine ($ client );
33
33
$ engine ->update (Collection::make ([new ElasticsearchEngineTestModel ]));
34
34
}
35
35
@@ -41,23 +41,22 @@ public function test_delete_removes_objects_to_index()
41
41
[
42
42
'delete ' => [
43
43
'_id ' => 1 ,
44
- '_index ' => 'scout ' ,
44
+ '_index ' => 'table ' ,
45
45
'_type ' => 'table ' ,
46
46
]
47
47
],
48
48
]
49
49
]);
50
50
51
- $ engine = new ElasticsearchEngine ($ client, ' scout ' );
51
+ $ engine = new ElasticsearchEngine ($ client );
52
52
$ engine ->delete (Collection::make ([new ElasticsearchEngineTestModel ]));
53
53
}
54
54
55
55
public function test_search_sends_correct_parameters_to_elasticsearch ()
56
56
{
57
57
$ client = Mockery::mock ('Elasticsearch\Client ' );
58
58
$ client ->shouldReceive ('search ' )->with ([
59
- 'index ' => 'scout ' ,
60
- 'type ' => 'table ' ,
59
+ 'index ' => 'table ' ,
61
60
'body ' => [
62
61
'query ' => [
63
62
'bool ' => [
@@ -74,7 +73,7 @@ public function test_search_sends_correct_parameters_to_elasticsearch()
74
73
]
75
74
]);
76
75
77
- $ engine = new ElasticsearchEngine ($ client, ' scout ' );
76
+ $ engine = new ElasticsearchEngine ($ client );
78
77
$ builder = new Laravel \Scout \Builder (new ElasticsearchEngineTestModel , 'zonda ' );
79
78
$ builder ->where ('foo ' , 1 );
80
79
$ builder ->where ('bar ' , [1 , 3 ]);
You can’t perform that action at this time.
0 commit comments