Solve phpunit.

Fix database field format
This commit is contained in:
Laurent Destailleur 2015-01-19 01:58:48 +01:00
parent 3554624537
commit fdaa930507
3 changed files with 7 additions and 7 deletions

View File

@ -47,9 +47,9 @@ ALTER TABLE llx_product_fournisseur_price ADD fk_price_expression integer DEFAUL
insert into llx_c_tva(rowid,fk_pays,taux,recuperableonly,note,active) values ( 2131, 213, '5', '0', 'VAT 5%', 1);
-- Add situation invoices
ALTER TABLE llx_facture ADD COLUMN situation_cycle_ref integer;
ALTER TABLE llx_facture ADD COLUMN situation_counter integer;
ALTER TABLE llx_facture ADD COLUMN situation_final integer;
ALTER TABLE llx_facture ADD COLUMN situation_cycle_ref smallint;
ALTER TABLE llx_facture ADD COLUMN situation_counter smallint;
ALTER TABLE llx_facture ADD COLUMN situation_final smallint;
ALTER TABLE llx_facturedet ADD COLUMN situation_percent real;
ALTER TABLE llx_facturedet ADD COLUMN fk_prev_id integer;

View File

@ -78,8 +78,8 @@ create table llx_facture
import_key varchar(14),
extraparams varchar(255), -- for stock other parameters with json format
situation_cycle_ref smallint UNSIGNED, -- situation cycle reference
situation_counter tinyint UNSIGNED, -- situation counter
situation_final boolean -- is the situation final ?
situation_cycle_ref smallint, -- situation cycle reference
situation_counter smallint, -- situation counter
situation_final smallint -- is the situation final ?
)ENGINE=innodb;

View File

@ -216,7 +216,7 @@ class FactureTest extends PHPUnit_Framework_TestCase
$newlocalobject=new Facture($this->savdb);
$newlocalobject->initAsSpecimen();
$this->changeProperties($newlocalobject);
$this->assertEquals($this->objCompare($localobject,$newlocalobject,true,array('newref','oldref','id','lines','client','thirdparty','brouillon','user_author','date_creation','date_validation','datem','ref','statut','paye','specimen','facnumber','actiontypecode','actionmsg2','actionmsg','mode_reglement','cond_reglement','cond_reglement_doc')), array()); // Actual, Expected
$this->assertEquals($this->objCompare($localobject,$newlocalobject,true,array('newref','oldref','id','lines','client','thirdparty','brouillon','user_author','date_creation','date_validation','datem','ref','statut','paye','specimen','facnumber','actiontypecode','actionmsg2','actionmsg','mode_reglement','cond_reglement','cond_reglement_doc','situation_cycle_ref','situation_counter','situation_final')), array()); // Actual, Expected
return $localobject;
}