From 61ea85501f7e31c75b4ed9d84209e2a9954f05ad Mon Sep 17 00:00:00 2001
From: Martynas Sudintas <martynas.sudintas@ongr.io>
Date: Wed, 1 Apr 2015 13:09:43 +0300
Subject: [PATCH] Refactored some dsl tests, no changed behavior

---
 QueryAwareTraitTest.php | 39 ---------------------------------------
 1 file changed, 39 deletions(-)
 delete mode 100644 QueryAwareTraitTest.php

diff --git a/QueryAwareTraitTest.php b/QueryAwareTraitTest.php
deleted file mode 100644
index 9ceed36..0000000
--- a/QueryAwareTraitTest.php
+++ /dev/null
@@ -1,39 +0,0 @@
-<?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\DSL;
-
-/**
- * Tests query aware trait provided methods.
- */
-class QueryAwareTraitTest extends \PHPUnit_Framework_TestCase
-{
-    /**
-     * Tests hasQuery method without any queries loaded.
-     */
-    public function testHasQueryMethodWithoutQueries()
-    {
-        $mock = $this->getMockForTrait('ONGR\ElasticsearchBundle\DSL\Query\QueryAwareTrait');
-        $this->assertFalse($mock->hasQuery('some_type'));
-    }
-
-    /**
-     * Tests hasQuery method with one query loaded.
-     */
-    public function testHasQueryMethodWithQueries()
-    {
-        $builder = $this->getMock('ONGR\ElasticsearchBundle\DSL\BuilderInterface');
-        $builder->expects($this->once())->method('getType')->willReturn('foo_type');
-        $mock = $this->getMockForTrait('ONGR\ElasticsearchBundle\DSL\Query\QueryAwareTrait');
-        $mock->addQuery($builder);
-        $this->assertTrue($mock->hasQuery('foo_type'));
-    }
-}
-- 
GitLab