Skip to content

Commit 504ac51

Browse files
committed
fixed test
1 parent acf28f2 commit 504ac51

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

tests/ElasticsearchEngineTest.php

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function test_update_adds_objects_to_index()
1818
[
1919
'update' => [
2020
'_id' => 1,
21-
'_index' => 'scout',
21+
'_index' => 'table',
2222
'_type' => 'table',
2323
]
2424
],
@@ -29,7 +29,7 @@ public function test_update_adds_objects_to_index()
2929
]
3030
]);
3131

32-
$engine = new ElasticsearchEngine($client, 'scout');
32+
$engine = new ElasticsearchEngine($client);
3333
$engine->update(Collection::make([new ElasticsearchEngineTestModel]));
3434
}
3535

@@ -41,23 +41,22 @@ public function test_delete_removes_objects_to_index()
4141
[
4242
'delete' => [
4343
'_id' => 1,
44-
'_index' => 'scout',
44+
'_index' => 'table',
4545
'_type' => 'table',
4646
]
4747
],
4848
]
4949
]);
5050

51-
$engine = new ElasticsearchEngine($client, 'scout');
51+
$engine = new ElasticsearchEngine($client);
5252
$engine->delete(Collection::make([new ElasticsearchEngineTestModel]));
5353
}
5454

5555
public function test_search_sends_correct_parameters_to_elasticsearch()
5656
{
5757
$client = Mockery::mock('Elasticsearch\Client');
5858
$client->shouldReceive('search')->with([
59-
'index' => 'scout',
60-
'type' => 'table',
59+
'index' => 'table',
6160
'body' => [
6261
'query' => [
6362
'bool' => [
@@ -74,7 +73,7 @@ public function test_search_sends_correct_parameters_to_elasticsearch()
7473
]
7574
]);
7675

77-
$engine = new ElasticsearchEngine($client, 'scout');
76+
$engine = new ElasticsearchEngine($client);
7877
$builder = new Laravel\Scout\Builder(new ElasticsearchEngineTestModel, 'zonda');
7978
$builder->where('foo', 1);
8079
$builder->where('bar', [1, 3]);

0 commit comments

Comments
 (0)