public function setType($typeName) { $this->_type = $typeName; return $this; }
/** * @group unit */ public function testSetType() { $typeQuery = new Type(); $returnValue = $typeQuery->setType('type_name'); $this->assertInstanceOf('Elastica\\Query\\Type', $returnValue); }