/**
  * Tests whether __constructor calls setParameters method.
  */
 public function testConstructor()
 {
     $missingFilter = $this->getMockBuilder('ONGR\\ElasticsearchDSL\\Filter\\MissingFilter')->setConstructorArgs(['test_field'])->getMock();
     $query = new HasParentQuery('test_type', $missingFilter, ['test_parameter1']);
     $this->assertEquals(['test_parameter1'], $query->getParameters());
 }
 /**
  * Tests whether __constructor calls setParameters method.
  */
 public function testConstructor()
 {
     $parentQuery = $this->getMock('ONGR\\ElasticsearchDSL\\BuilderInterface');
     $query = new HasParentQuery('test_type', $parentQuery, ['test_parameter1']);
     $this->assertEquals(['test_parameter1'], $query->getParameters());
 }