Skip to content

Commit

Permalink
removed duplicate test class
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus Kalkbrenner committed Jan 31, 2019
1 parent ba60933 commit f38d684
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 19 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Expand Up @@ -9,10 +9,10 @@ php:
- nightly

env:
- SYMFONY_VERSION=3.3.* SOLR_VERSION=6.6.5 SOLR_CLOUD=false
- SYMFONY_VERSION=4.0.* SOLR_VERSION=6.6.5 SOLR_CLOUD=false
- SYMFONY_VERSION=4.0.* SOLR_VERSION=7.6.0 SOLR_CLOUD=false
- SYMFONY_VERSION=4.0.* SOLR_VERSION=7.6.0 SOLR_CLOUD=true
- SYMFONY_VERSION=4.0.* SOLR_VERSION=7.6.0 SOLR_CLOUD=false
- SYMFONY_VERSION=4.0.* SOLR_VERSION=6.6.5 SOLR_CLOUD=false
- SYMFONY_VERSION=3.3.* SOLR_VERSION=6.6.5 SOLR_CLOUD=false

cache:
directories:
Expand Down
16 changes: 0 additions & 16 deletions tests/Integration/AbstractSolrCloudTest.php
Expand Up @@ -3,10 +3,7 @@
namespace Solarium\Tests\Integration;

use PHPUnit\Framework\TestCase;
use Solarium\Component\ComponentAwareQueryInterface;
use Solarium\Component\QueryTraits\TermsTrait;
use Solarium\Core\Client\ClientInterface;
use Solarium\QueryType\Select\Query\Query as SelectQuery;

abstract class AbstractSolrCloudTest extends TestCase
{
Expand Down Expand Up @@ -52,16 +49,3 @@ public function testPing()
$this->assertSame(0, $result->getStatus());
}
}

class TestQuery extends SelectQuery
{
use TermsTrait;

public function __construct($options = null)
{
parent::__construct($options);
$this->componentTypes[ComponentAwareQueryInterface::COMPONENT_TERMS] = 'Solarium\Component\Terms';
// Unfortunately the terms request Handler is the only one containing a terms component.
$this->setHandler('terms');
}
}

0 comments on commit f38d684

Please sign in to comment.