Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
garveen committed Aug 21, 2016
1 parent 4e011fe commit 97b0806
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ language: php
php:
- 5.5
- 5.6
- 7.0

include:
- php: 5.5
Expand Down
10 changes: 5 additions & 5 deletions tests/ElasticSearchMethodsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
* specifically returns results consistent with the ElasticSearch PHP client version
* 2.0 documentation.
*
* The Elasticquent method will then format the response and we test that the resulting
* Elasticquent results collection methods return the results we expect to verify this.
*/
* The Elasticquent method will then format the response and we test that the resulting
* Elasticquent results collection methods return the results we expect to verify this.
*/

class ElasticSearchMethodsTest extends PHPUnit_Framework_TestCase
{
Expand All @@ -24,15 +24,15 @@ class ElasticSearchMethodsTest extends PHPUnit_Framework_TestCase
'hits' => [
[
'_index' => 'my_custom_index_name',
'_type' => 'test_table',
'_type' => 'TestModel',
'_score' => 0.7768564,
'_source' => [
'name' => 'foo',
]
],
[
'_index' => 'my_custom_index_name',
'_type' => 'test_table',
'_type' => 'TestModel',
'_score' => 0.5634561,
'_source' => [
'name' => 'bar',
Expand Down
2 changes: 1 addition & 1 deletion tests/ElasticquentTraitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function setup()
*/
public function testTypeNameInferredFromTableName()
{
$this->assertEquals('test_table', $this->model->getTypeName());
$this->assertEquals('TestModel', $this->model->getTypeName());
}

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/stubs/parameters.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function basicParameters()
{
return [
'index' => 'my_custom_index_name',
'type' => 'test_table',
'type' => 'TestModel',
];
}

Expand Down
4 changes: 2 additions & 2 deletions tests/stubs/results.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ function successfulResults()
'hits' => [
[
'_index' => 'my_custom_index_name',
'_type' => 'test_table',
'_type' => 'TestModel',
'_score' => 0.7768564,
'_source' => [
'name' => 'foo',
]
],
[
'_index' => 'my_custom_index_name',
'_type' => 'test_table',
'_type' => 'TestModel',
'_score' => 0.5634561,
'_source' => [
'name' => 'bar',
Expand Down

0 comments on commit 97b0806

Please sign in to comment.