Qual: Add more phpunit tests
This commit is contained in:
parent
8a5e833b3e
commit
136c606f04
@ -28,7 +28,7 @@ if (! defined('NOREQUIRESOC')) define('NOREQUIRESOC','1');
|
||||
if (! defined('NOREQUIRETRAN')) define('NOREQUIRETRAN','1');
|
||||
|
||||
require('../main.inc.php');
|
||||
require_once(DOL_DOCUMENT_ROOT."/core/class/genericobject.class.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/core/class/commonobject.class.php");
|
||||
|
||||
|
||||
/*
|
||||
@ -49,7 +49,7 @@ if((isset($_GET['roworder']) && !empty($_GET['roworder'])) && (isset($_GET['tabl
|
||||
&& (isset($_GET['fk_element']) && !empty($_GET['fk_element'])) && (isset($_GET['element_id']) && !empty($_GET['element_id'])) )
|
||||
{
|
||||
$roworder = explode(',',$_GET['roworder']);
|
||||
|
||||
|
||||
foreach($roworder as $value)
|
||||
{
|
||||
if (!empty($value))
|
||||
@ -57,12 +57,12 @@ if((isset($_GET['roworder']) && !empty($_GET['roworder'])) && (isset($_GET['tabl
|
||||
$newroworder[] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$roworder = implode(',',$newroworder);
|
||||
|
||||
|
||||
dol_syslog("AjaxRow roworder=".$_GET['roworder']." neworder=".$roworder." element=".$_GET['element'], LOG_DEBUG);
|
||||
|
||||
$row=new GenericObject($db);
|
||||
$row=new CommonObject($db);
|
||||
$row->table_element_line = $_GET['table_element_line'];
|
||||
$row->fk_element = $_GET['fk_element'];
|
||||
$row->id = $_GET['element_id'];
|
||||
|
||||
@ -1,47 +0,0 @@
|
||||
<?php
|
||||
/* Copyright (C) 2006-2011 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/**
|
||||
* \file htdocs/core/class/genericobject.class.php
|
||||
* \ingroup core
|
||||
* \brief File of class of generic business class
|
||||
*/
|
||||
require_once(DOL_DOCUMENT_ROOT ."/core/class/commonobject.class.php");
|
||||
|
||||
|
||||
/**
|
||||
* \class GenericObject
|
||||
* \brief Class of a generic business object
|
||||
*/
|
||||
|
||||
class GenericObject extends CommonObject
|
||||
{
|
||||
var $db;
|
||||
|
||||
/**
|
||||
* Class constructor
|
||||
*
|
||||
* @param DoliDB $db Data base handler access
|
||||
*/
|
||||
function GenericObject($db)
|
||||
{
|
||||
$this->db=$db;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@ -58,6 +58,8 @@ ALTER TABLE llx_facture_fourn ADD COLUMN ref_ext varchar(30) AFTER entity;
|
||||
ALTER TABLE llx_commande_fournisseur ADD COLUMN ref_ext varchar(30) AFTER entity;
|
||||
ALTER TABLE llx_adherent ADD COLUMN ref_ext varchar(30) after entity;
|
||||
|
||||
ALTER TABLE llx_commande ADD COLUMN fk_demand_reason integer AFTER fk_availability;
|
||||
|
||||
ALTER TABLE llx_facturedet DROP INDEX uk_fk_remise_except;
|
||||
ALTER TABLE llx_facturedet ADD UNIQUE INDEX uk_fk_remise_except (fk_remise_except, fk_facture);
|
||||
|
||||
@ -111,8 +113,6 @@ INSERT INTO llx_c_availability (rowid,code,label,active) VALUES (2, 'AV_1W', '1
|
||||
INSERT INTO llx_c_availability (rowid,code,label,active) VALUES (3, 'AV_2W', '2 weeks', 1);
|
||||
INSERT INTO llx_c_availability (rowid,code,label,active) VALUES (4, 'AV_3W', '3 weeks', 1);
|
||||
|
||||
ALTER TABLE llx_commande ADD COLUMN fk_demand_reason integer AFTER fk_availability;
|
||||
|
||||
ALTER TABLE llx_propaldet ADD INDEX idx_propaldet_fk_product (fk_product);
|
||||
ALTER TABLE llx_commandedet ADD INDEX idx_commandedet_fk_product (fk_product);
|
||||
ALTER TABLE llx_facturedet ADD INDEX idx_facturedet_fk_product (fk_product);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user