Skip to content

Commit b8ef971

Browse files
committed
Fix tests
1 parent 6f6d744 commit b8ef971

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/ElasticsearchEngineTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function test_update_adds_objects_to_index()
1919
'update' => [
2020
'_id' => 1,
2121
'_index' => 'scouttable',
22-
'_type' => 'doc',
22+
'_type' => '_doc',
2323
]
2424
],
2525
[
@@ -42,7 +42,7 @@ public function test_delete_removes_objects_to_index()
4242
'delete' => [
4343
'_id' => 1,
4444
'_index' => 'scouttable',
45-
'_type' => 'doc',
45+
'_type' => '_doc',
4646
]
4747
],
4848
]
@@ -57,7 +57,7 @@ public function test_search_sends_correct_parameters_to_elasticsearch()
5757
$client = Mockery::mock('Elasticsearch\Client');
5858
$client->shouldReceive('search')->with([
5959
'index' => 'scouttable',
60-
'type' => 'doc',
60+
'type' => '_doc',
6161
'body' => [
6262
'query' => [
6363
'bool' => [

0 commit comments

Comments
 (0)