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
33php :
44    - 5.5 
55    - 5.6 
6+     - 7.0 
67
78include :
89    - php : 5.5 
Original file line number Diff line number Diff line change 1212 * specifically returns results consistent with the ElasticSearch PHP client version 
1313 * 2.0 documentation. 
1414 * 
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+  */ 
1818
1919class  ElasticSearchMethodsTest extends  PHPUnit_Framework_TestCase
2020{
@@ -24,15 +24,15 @@ class ElasticSearchMethodsTest extends PHPUnit_Framework_TestCase
2424            'hits '  => [
2525                [
2626                    '_index '  => 'my_custom_index_name ' ,
27-                     '_type '  => 'test_table ' ,
27+                     '_type '  => 'SearchTestModel ' ,
2828                    '_score '  => 0.7768564 ,
2929                    '_source '  => [
3030                        'name '  => 'foo ' ,
3131                    ]
3232                ],
3333                [
3434                    '_index '  => 'my_custom_index_name ' ,
35-                     '_type '  => 'test_table ' ,
35+                     '_type '  => 'SearchTestModel ' ,
3636                    '_score '  => 0.5634561 ,
3737                    '_source '  => [
3838                        'name '  => 'bar ' ,
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ public function setup()
2020     */ 
2121    public  function  testTypeNameInferredFromTableName ()
2222    {
23-         $ this assertEquals ('test_table ' , $ this model ->getTypeName ());
23+         $ this assertEquals ('TestModel ' , $ this model ->getTypeName ());
2424    }
2525
2626    /** 
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ function basicParameters()
88{
99    return  [
1010        'index '  => 'my_custom_index_name ' ,
11-         'type '  => 'test_table ' ,
11+         'type '  => 'SearchTestModel ' ,
1212    ];
1313}
1414
Original file line number Diff line number Diff line change @@ -20,15 +20,15 @@ function successfulResults()
2020            'hits '  => [
2121                [
2222                    '_index '  => 'my_custom_index_name ' ,
23-                     '_type '  => 'test_table ' ,
23+                     '_type '  => 'SearchTestModel ' ,
2424                    '_score '  => 0.7768564 ,
2525                    '_source '  => [
2626                        'name '  => 'foo ' ,
2727                    ]
2828                ],
2929                [
3030                    '_index '  => 'my_custom_index_name ' ,
31-                     '_type '  => 'test_table ' ,
31+                     '_type '  => 'SearchTestModel ' ,
3232                    '_score '  => 0.5634561 ,
3333                    '_source '  => [
3434                        'name '  => 'bar ' ,
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments