public function holidaysDelete()
 {
     $this->getObjLeave()->delete();
     Holidays::updateHolidaysForLeavesOnDelete();
     return "";
 }
 public function testUpdateHolidaysForLeavesOnDelete()
 {
     $dbConnection = new DMLFunctions();
     Holidays::updateHolidaysForLeavesOnDelete(date('Y-m-d', time() - 3600 * 24 * 2), '8');
     $query = "SELECT leave_id, leave_status FROM hs_hr_leave WHERE leave_id = 11 ";
     $result = $dbConnection->executeQuery($query);
     $row = $dbConnection->dbObject->getArray($result);
     $this->assertEquals(5, $row['leave_status'], 'Invalid status');
     Holidays::updateHolidaysForLeavesOnDelete(date('Y-m-d', time() + 3600 * 24 * 3), '8');
     $query = "SELECT leave_id, leave_status FROM hs_hr_leave WHERE leave_id = 13 ";
     $result = $dbConnection->executeQuery($query);
     $row = $dbConnection->dbObject->getArray($result);
     $this->assertEquals(1, $row['leave_status'], 'Invalid status');
 }