Skip to content

Commit 97b0806

Browse files
committed
testing
1 parent 4e011fe commit 97b0806

File tree

5 files changed

+10
-9
lines changed

5 files changed

+10
-9
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ language: php
33
php:
44
- 5.5
55
- 5.6
6+
- 7.0
67

78
include:
89
- php: 5.5

tests/ElasticSearchMethodsTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
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

1919
class 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' => 'TestModel',
2828
'_score' => 0.7768564,
2929
'_source' => [
3030
'name' => 'foo',
3131
]
3232
],
3333
[
3434
'_index' => 'my_custom_index_name',
35-
'_type' => 'test_table',
35+
'_type' => 'TestModel',
3636
'_score' => 0.5634561,
3737
'_source' => [
3838
'name' => 'bar',

tests/ElasticquentTraitTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
/**

tests/stubs/parameters.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function basicParameters()
88
{
99
return [
1010
'index' => 'my_custom_index_name',
11-
'type' => 'test_table',
11+
'type' => 'TestModel',
1212
];
1313
}
1414

tests/stubs/results.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ function successfulResults()
2020
'hits' => [
2121
[
2222
'_index' => 'my_custom_index_name',
23-
'_type' => 'test_table',
23+
'_type' => 'TestModel',
2424
'_score' => 0.7768564,
2525
'_source' => [
2626
'name' => 'foo',
2727
]
2828
],
2929
[
3030
'_index' => 'my_custom_index_name',
31-
'_type' => 'test_table',
31+
'_type' => 'TestModel',
3232
'_score' => 0.5634561,
3333
'_source' => [
3434
'name' => 'bar',

0 commit comments

Comments
 (0)