Example #1
0
 public function testValidQueryWithType()
 {
     $mockTransport = m::mock('\\Elasticsearch\\Transport')->shouldReceive('performRequest')->once()->with('GET', '/_all/testType/_validate/query', array(), null)->getMock();
     $action = new Query($mockTransport);
     $action->setType('testType')->performRequest();
 }