From 5ad87dd5e64edfb15f517c8c6a204bf673f29eaa Mon Sep 17 00:00:00 2001 From: Martynas Sudintas <martynas.sudintas@ongr.io> Date: Mon, 18 May 2015 11:30:23 +0300 Subject: [PATCH] Added SearchEndpointFactoryTest --- SearchEndpoint/SearchEndpointFactoryTest.php | 30 ++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 SearchEndpoint/SearchEndpointFactoryTest.php diff --git a/SearchEndpoint/SearchEndpointFactoryTest.php b/SearchEndpoint/SearchEndpointFactoryTest.php new file mode 100644 index 0000000..eeaee16 --- /dev/null +++ b/SearchEndpoint/SearchEndpointFactoryTest.php @@ -0,0 +1,30 @@ +<?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\ElasticsearchBundle\Tests\Unit\SearchEndpoint; + +use ONGR\ElasticsearchBundle\DSL\SearchEndpoint\SearchEndpointFactory; + +/** + * Unit test class for search endpoint factory. + */ +class SearchEndpointFactoryTest extends \PHPUnit_Framework_TestCase +{ + /** + * Tests get method exception. + * + * @expectedException \RuntimeException + */ + public function testGet() + { + SearchEndpointFactory::get('foo'); + } +} -- GitLab