File tree Expand file tree Collapse file tree 5 files changed +10
-9
lines changed Expand file tree Collapse file tree 5 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ language: php
3
3
php :
4
4
- 5.5
5
5
- 5.6
6
+ - 7.0
6
7
7
8
include :
8
9
- php : 5.5
Original file line number Diff line number Diff line change 12
12
* specifically returns results consistent with the ElasticSearch PHP client version
13
13
* 2.0 documentation.
14
14
*
15
- * The Elasticquent method will then format the response and we test that the resulting
16
- * Elasticquent results collection methods return the results we expect to verify this.
17
- */
15
+ * The Elasticquent method will then format the response and we test that the resulting
16
+ * Elasticquent results collection methods return the results we expect to verify this.
17
+ */
18
18
19
19
class ElasticSearchMethodsTest extends PHPUnit_Framework_TestCase
20
20
{
@@ -24,15 +24,15 @@ class ElasticSearchMethodsTest extends PHPUnit_Framework_TestCase
24
24
'hits ' => [
25
25
[
26
26
'_index ' => 'my_custom_index_name ' ,
27
- '_type ' => 'test_table ' ,
27
+ '_type ' => 'TestModel ' ,
28
28
'_score ' => 0.7768564 ,
29
29
'_source ' => [
30
30
'name ' => 'foo ' ,
31
31
]
32
32
],
33
33
[
34
34
'_index ' => 'my_custom_index_name ' ,
35
- '_type ' => 'test_table ' ,
35
+ '_type ' => 'TestModel ' ,
36
36
'_score ' => 0.5634561 ,
37
37
'_source ' => [
38
38
'name ' => 'bar ' ,
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ public function setup()
20
20
*/
21
21
public function testTypeNameInferredFromTableName ()
22
22
{
23
- $ this ->assertEquals ('test_table ' , $ this ->model ->getTypeName ());
23
+ $ this ->assertEquals ('TestModel ' , $ this ->model ->getTypeName ());
24
24
}
25
25
26
26
/**
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ function basicParameters()
8
8
{
9
9
return [
10
10
'index ' => 'my_custom_index_name ' ,
11
- 'type ' => 'test_table ' ,
11
+ 'type ' => 'TestModel ' ,
12
12
];
13
13
}
14
14
Original file line number Diff line number Diff line change @@ -20,15 +20,15 @@ function successfulResults()
20
20
'hits ' => [
21
21
[
22
22
'_index ' => 'my_custom_index_name ' ,
23
- '_type ' => 'test_table ' ,
23
+ '_type ' => 'TestModel ' ,
24
24
'_score ' => 0.7768564 ,
25
25
'_source ' => [
26
26
'name ' => 'foo ' ,
27
27
]
28
28
],
29
29
[
30
30
'_index ' => 'my_custom_index_name ' ,
31
- '_type ' => 'test_table ' ,
31
+ '_type ' => 'TestModel ' ,
32
32
'_score ' => 0.5634561 ,
33
33
'_source ' => [
34
34
'name ' => 'bar ' ,
You can’t perform that action at this time.
0 commit comments