/** * @expectedException SIUToba\rest\lib\rest_error */ public function testOrderByInvalido() { $this->filtro->agregar_campo('nombre'); $this->filtro->agregar_campo('apellido'); $this->agregar_parametro_request('order', '+apellido,-"and=1=1'); $this->assertEquals("ORDER BY apellido ASC, nombre DESC", trim($this->filtro->get_sql_order_by())); }