Removed all checkstyle errors into phpunit files
This commit is contained in:
parent
974daf5664
commit
fc62b1c9c7
@ -126,8 +126,7 @@ class CMailFileTest extends PHPUnit_Framework_TestCase
|
|||||||
$langs=$this->savlangs;
|
$langs=$this->savlangs;
|
||||||
$db=$this->savdb;
|
$db=$this->savdb;
|
||||||
|
|
||||||
$localobject=new CMailFile('Test','test@test.com','from@from.com',
|
$localobject=new CMailFile('Test','test@test.com','from@from.com','Message txt',array(),array(),array(),'','',1,0);
|
||||||
'Message txt',array(),array(),array(),'','',1,0);
|
|
||||||
|
|
||||||
$result=$localobject->sendfile();
|
$result=$localobject->sendfile();
|
||||||
print __METHOD__." result=".$result."\n";
|
print __METHOD__." result=".$result."\n";
|
||||||
|
|||||||
@ -138,7 +138,9 @@ class CommandeTest extends PHPUnit_Framework_TestCase
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* testCommandeFetch
|
* testCommandeFetch
|
||||||
|
*
|
||||||
* @param int $id Id order
|
* @param int $id Id order
|
||||||
|
* @return Commande
|
||||||
*
|
*
|
||||||
* @depends testCommandeCreate
|
* @depends testCommandeCreate
|
||||||
* The depends says test is run only if previous is ok
|
* The depends says test is run only if previous is ok
|
||||||
|
|||||||
@ -165,6 +165,7 @@ class CompanyBankAccountTest extends PHPUnit_Framework_TestCase
|
|||||||
* testCompanyBankAccountUpdate
|
* testCompanyBankAccountUpdate
|
||||||
*
|
*
|
||||||
* @param Object $localobject Bank account object
|
* @param Object $localobject Bank account object
|
||||||
|
* @return int
|
||||||
*
|
*
|
||||||
* @depends testCompanyBankAccountFetch
|
* @depends testCompanyBankAccountFetch
|
||||||
* The depends says test is run only if previous is ok
|
* The depends says test is run only if previous is ok
|
||||||
|
|||||||
@ -141,7 +141,8 @@ class ContactTest extends PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* testContactFetch
|
* testContactFetch
|
||||||
*
|
*
|
||||||
* @param int Id of contact
|
* @param int $id Id of contact
|
||||||
|
* @return int
|
||||||
* @depends testContactCreate
|
* @depends testContactCreate
|
||||||
* The depends says test is run only if previous is ok
|
* The depends says test is run only if previous is ok
|
||||||
*/
|
*/
|
||||||
@ -163,6 +164,11 @@ class ContactTest extends PHPUnit_Framework_TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* testContactUpdate
|
||||||
|
*
|
||||||
|
* @param Contact $localobject Contact
|
||||||
|
* @return int
|
||||||
|
*
|
||||||
* @depends testContactFetch
|
* @depends testContactFetch
|
||||||
* The depends says test is run only if previous is ok
|
* The depends says test is run only if previous is ok
|
||||||
*/
|
*/
|
||||||
@ -244,6 +250,11 @@ class ContactTest extends PHPUnit_Framework_TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* testContactOther
|
||||||
|
*
|
||||||
|
* @param Contact $localobject Contact
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
* @depends testContactUpdate
|
* @depends testContactUpdate
|
||||||
* The depends says test is run only if previous is ok
|
* The depends says test is run only if previous is ok
|
||||||
*/
|
*/
|
||||||
@ -273,6 +284,11 @@ class ContactTest extends PHPUnit_Framework_TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* testContactDelete
|
||||||
|
*
|
||||||
|
* @param int $id Id of contact
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
* @depends testContactOther
|
* @depends testContactOther
|
||||||
* The depends says test is run only if previous is ok
|
* The depends says test is run only if previous is ok
|
||||||
*/
|
*/
|
||||||
@ -295,6 +311,9 @@ class ContactTest extends PHPUnit_Framework_TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* testContactStatic
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function testContactStatic()
|
public function testContactStatic()
|
||||||
{
|
{
|
||||||
|
|||||||
@ -165,7 +165,7 @@ class ContratTest extends PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* testContratValid
|
* testContratValid
|
||||||
*
|
*
|
||||||
* @param int $id Id of contract
|
* @param Contrat $localobject Contract
|
||||||
* @return int
|
* @return int
|
||||||
*
|
*
|
||||||
* @depends testContratFetch
|
* @depends testContratFetch
|
||||||
|
|||||||
@ -165,6 +165,7 @@ class DiscountTest extends PHPUnit_Framework_TestCase
|
|||||||
* testDiscountDelete
|
* testDiscountDelete
|
||||||
*
|
*
|
||||||
* @param int $id Id of discount
|
* @param int $id Id of discount
|
||||||
|
* @return int
|
||||||
*
|
*
|
||||||
* @depends testDiscountFetch
|
* @depends testDiscountFetch
|
||||||
* The depends says test is run only if previous is ok
|
* The depends says test is run only if previous is ok
|
||||||
|
|||||||
@ -114,6 +114,9 @@ class FactureFournisseurTest extends PHPUnit_Framework_TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* testFactureFournisseurCreate
|
||||||
|
*
|
||||||
|
* @return int
|
||||||
*/
|
*/
|
||||||
public function testFactureFournisseurCreate()
|
public function testFactureFournisseurCreate()
|
||||||
{
|
{
|
||||||
@ -133,6 +136,11 @@ class FactureFournisseurTest extends PHPUnit_Framework_TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* testFactureFournisseurFetch
|
||||||
|
*
|
||||||
|
* @param int $id If supplier invoice
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
* @depends testFactureFournisseurCreate
|
* @depends testFactureFournisseurCreate
|
||||||
* The depends says test is run only if previous is ok
|
* The depends says test is run only if previous is ok
|
||||||
*/
|
*/
|
||||||
@ -153,6 +161,11 @@ class FactureFournisseurTest extends PHPUnit_Framework_TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* testFactureFournisseurUpdate
|
||||||
|
*
|
||||||
|
* @param Object $localobject Supplier invoice
|
||||||
|
* @return int
|
||||||
|
*
|
||||||
* @depends testFactureFournisseurFetch
|
* @depends testFactureFournisseurFetch
|
||||||
* The depends says test is run only if previous is ok
|
* The depends says test is run only if previous is ok
|
||||||
*/
|
*/
|
||||||
@ -173,6 +186,11 @@ class FactureFournisseurTest extends PHPUnit_Framework_TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* testFactureFournisseurValid
|
||||||
|
*
|
||||||
|
* @param Object $localobject Supplier invoice
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
* @depends testFactureFournisseurUpdate
|
* @depends testFactureFournisseurUpdate
|
||||||
* The depends says test is run only if previous is ok
|
* The depends says test is run only if previous is ok
|
||||||
*/
|
*/
|
||||||
@ -192,6 +210,11 @@ class FactureFournisseurTest extends PHPUnit_Framework_TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* testFactureFournisseurOther
|
||||||
|
*
|
||||||
|
* @param Object $localobject Supplier invoice
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
* @depends testFactureFournisseurValid
|
* @depends testFactureFournisseurValid
|
||||||
* The depends says test is run only if previous is ok
|
* The depends says test is run only if previous is ok
|
||||||
*/
|
*/
|
||||||
@ -216,6 +239,11 @@ class FactureFournisseurTest extends PHPUnit_Framework_TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* testFactureFournisseurDelete
|
||||||
|
*
|
||||||
|
* @param int $id Id of supplier invoice
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
* @depends testFactureFournisseurOther
|
* @depends testFactureFournisseurOther
|
||||||
* The depends says test is run only if previous is ok
|
* The depends says test is run only if previous is ok
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -140,6 +140,7 @@ class FactureTest extends PHPUnit_Framework_TestCase
|
|||||||
* testFactureFetch
|
* testFactureFetch
|
||||||
*
|
*
|
||||||
* @param int $id Id invoice
|
* @param int $id Id invoice
|
||||||
|
* @return int
|
||||||
*
|
*
|
||||||
* @depends testFactureCreate
|
* @depends testFactureCreate
|
||||||
* The depends says test is run only if previous is ok
|
* The depends says test is run only if previous is ok
|
||||||
@ -164,6 +165,7 @@ class FactureTest extends PHPUnit_Framework_TestCase
|
|||||||
* testFactureFetch
|
* testFactureFetch
|
||||||
*
|
*
|
||||||
* @param Object $localobject Invoice
|
* @param Object $localobject Invoice
|
||||||
|
* @return int
|
||||||
*
|
*
|
||||||
* @depends testFactureFetch
|
* @depends testFactureFetch
|
||||||
* The depends says test is run only if previous is ok
|
* The depends says test is run only if previous is ok
|
||||||
@ -185,6 +187,11 @@ class FactureTest extends PHPUnit_Framework_TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* testFactureValid
|
||||||
|
*
|
||||||
|
* @param Object $localobject Invoice
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
* @depends testFactureUpdate
|
* @depends testFactureUpdate
|
||||||
* The depends says test is run only if previous is ok
|
* The depends says test is run only if previous is ok
|
||||||
*/
|
*/
|
||||||
@ -211,6 +218,11 @@ class FactureTest extends PHPUnit_Framework_TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* testFactureOther
|
||||||
|
*
|
||||||
|
* @param Object $localobject Invoice
|
||||||
|
* @return int
|
||||||
|
*
|
||||||
* @depends testFactureValid
|
* @depends testFactureValid
|
||||||
* The depends says test is run only if previous is ok
|
* The depends says test is run only if previous is ok
|
||||||
*/
|
*/
|
||||||
@ -235,6 +247,11 @@ class FactureTest extends PHPUnit_Framework_TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* testFactureDelete
|
||||||
|
*
|
||||||
|
* @param int $id Id of invoice
|
||||||
|
* @return int
|
||||||
|
*
|
||||||
* @depends testFactureOther
|
* @depends testFactureOther
|
||||||
* The depends says test is run only if previous is ok
|
* The depends says test is run only if previous is ok
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -144,6 +144,7 @@ class ProductTest extends PHPUnit_Framework_TestCase
|
|||||||
* testProductFetch
|
* testProductFetch
|
||||||
*
|
*
|
||||||
* @param int $id Id product
|
* @param int $id Id product
|
||||||
|
* @return Product
|
||||||
*
|
*
|
||||||
* @depends testProductCreate
|
* @depends testProductCreate
|
||||||
* The depends says test is run only if previous is ok
|
* The depends says test is run only if previous is ok
|
||||||
|
|||||||
@ -238,7 +238,7 @@ class UserTest extends PHPUnit_Framework_TestCase
|
|||||||
/**
|
/**
|
||||||
* testUserDelete
|
* testUserDelete
|
||||||
*
|
*
|
||||||
* @param Object $localobject User
|
* @param Object $id User
|
||||||
* @return void
|
* @return void
|
||||||
* @depends testUserOther
|
* @depends testUserOther
|
||||||
* The depends says test is run only if previous is ok
|
* The depends says test is run only if previous is ok
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user