Skip to content

Commit 6ff6127

Browse files
author
Simonas Šerlinskas
committed
Merge remote-tracking branch 'remotes/origin/6.x'
2 parents 6ae9f77 + 224752d commit 6ff6127

File tree

7 files changed

+8
-11
lines changed

7 files changed

+8
-11
lines changed

.coveralls.yml

Lines changed: 0 additions & 4 deletions
This file was deleted.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
/vendor/
22
/phpunit.xml
33
/composer.lock
4+
coverage.xml

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ php:
66
- 7.2
77
env:
88
global:
9-
- ES_VERSION=6.5.4 ES_DOWNLOAD_URL=https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${ES_VERSION}.tar.gz
9+
- ES_VERSION=6.7.1 ES_DOWNLOAD_URL=https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${ES_VERSION}.tar.gz
1010
install:
1111
- wget ${ES_DOWNLOAD_URL}
1212
- tar -xzf elasticsearch-${ES_VERSION}.tar.gz
@@ -16,7 +16,7 @@ before_script:
1616
- composer install --no-interaction --prefer-dist
1717
script:
1818
- wget -q --waitretry=1 --retry-connrefused -T 10 -O - http://127.0.0.1:9200
19-
- vendor/bin/phpunit --coverage-clover=coverage.clover
19+
- vendor/bin/phpunit --coverage-clover=coverage.xml
2020
- vendor/bin/phpcs -p --standard=PSR2 --ignore=vendor/ ./
2121
after_script:
22-
- travis_retry php vendor/bin/php-coveralls
22+
- travis_retry bash <(curl -s https://codecov.io/bash)

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ If you need any help, [stack overflow](http://stackoverflow.com/questions/tagged
66
is the preffered and recommended way to ask ONGR support questions.
77

88
[![Build Status](https://travis-ci.org/ongr-io/ElasticsearchDSL.svg?branch=master)](https://travis-ci.org/ongr-io/ElasticsearchDSL)
9+
[![codecov](https://codecov.io/gh/ongr-io/ElasticsearchDSL/branch/master/graph/badge.svg)](https://codecov.io/gh/ongr-io/ElasticsearchDSL)
910
[![Coverage Status](https://coveralls.io/repos/ongr-io/ElasticsearchDSL/badge.svg?branch=master&service=github)](https://coveralls.io/github/ongr-io/ElasticsearchDSL?branch=master)
1011
[![Latest Stable Version](https://poser.pugx.org/ongr/elasticsearch-dsl/v/stable)](https://packagist.org/packages/ongr/elasticsearch-dsl)
1112
[![Total Downloads](https://poser.pugx.org/ongr/elasticsearch-dsl/downloads)](https://packagist.org/packages/ongr/elasticsearch-dsl)

phpunit.xml.dist

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@
3232
</exclude>
3333
</whitelist>
3434
</filter>
35-
3635
<logging>
3736
<log type="coverage-text" target="php://stdout" showOnlySummary="true"/>
3837
</logging>
39-
4038
</phpunit>

tests/Functional/AbstractElasticsearchTestCase.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@
1414
use Elasticsearch\Client;
1515
use Elasticsearch\ClientBuilder;
1616
use ONGR\ElasticsearchDSL\Search;
17+
use PHPUnit\Framework\TestCase;
1718

18-
abstract class AbstractElasticsearchTestCase extends \PHPUnit\Framework\TestCase
19+
abstract class AbstractElasticsearchTestCase extends TestCase
1920
{
2021
/**
2122
* Test index name in the elasticsearch.

tests/Functional/Query/MatchAllQueryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function testMatchAll()
4343
$matchAll = new MatchAllQuery();
4444

4545
$search->addQuery($matchAll);
46-
46+
$q = $search->getQueries();
4747
$results = $this->executeSearch($search);
4848

4949
$this->assertEquals($this->getDataArray()['product'], $results);

0 commit comments

Comments
 (0)