protected function agregar_parametro_request($param, $valor, $cantidad_llamados = 1) { $this->request->expects($this->exactly($cantidad_llamados))->method('get')->with($this->equalTo($param))->will($this->returnValue($valor)); $this->filtro->expects($this->any())->method('quote')->will($this->returnArgument(0)); }
/** * @return rest_filtro_sql */ protected function get_filtro_get_list() { $filtro = new rest_filtro_sql(); $filtro->agregar_campo("nombre", "pers.nombre"); $filtro->agregar_campo("fecha_nacimiento", "pers.fecha_nac"); $filtro->agregar_campo("id", "pers.id"); $filtro->agregar_campo_ordenable("nombre", "pers.nombre"); $filtro->agregar_campo_ordenable("fecha_nacimiento", "pers.fecha_nac"); return $filtro; }