From 13b2bc7e2fb3c4d897cf2c692749efb727355a17 Mon Sep 17 00:00:00 2001 From: Benjamin Cremer <bc@shopware.com> Date: Tue, 30 Jun 2015 11:57:44 +0200 Subject: [PATCH] Fix missing dependencies for QueryEndpoint --- composer.json | 3 ++- tests/SearchEndpoint/QueryEndpointTest.php | 28 ++++++++++++++++++++++ 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 tests/SearchEndpoint/QueryEndpointTest.php diff --git a/composer.json b/composer.json index f68b6d8..3004317 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,8 @@ ], "require": { "php": ">=5.4", - "symfony/serializer": "~2.7" + "symfony/serializer": "~2.7", + "symfony/options-resolver": "~2.7" }, "require-dev": { "phpunit/phpunit": "~4.4", diff --git a/tests/SearchEndpoint/QueryEndpointTest.php b/tests/SearchEndpoint/QueryEndpointTest.php new file mode 100644 index 0000000..52fe8c0 --- /dev/null +++ b/tests/SearchEndpoint/QueryEndpointTest.php @@ -0,0 +1,28 @@ +<?php + +/* + * This file is part of the ONGR package. + * + * (c) NFQ Technologies UAB <info@nfq.com> + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace ONGR\ElasticsearchDSL\Tests\Unit\SearchEndpoint; + +use ONGR\ElasticsearchDSL\SearchEndpoint\QueryEndpoint; + +/** + * Unit test class for the QueryEndpoint. + */ +class QueryEndpointTest extends \PHPUnit_Framework_TestCase +{ + /** + * Tests constructor. + */ + public function testItCanBeInstantiated() + { + $this->assertInstanceOf('ONGR\ElasticsearchDSL\SearchEndpoint\QueryEndpoint', new QueryEndpoint()); + } +} -- GitLab