New: Add phpunit tests
This commit is contained in:
parent
09ec63c6db
commit
70924ba14e
@ -40,6 +40,7 @@ if (empty($user->id))
|
|||||||
/**
|
/**
|
||||||
* @backupGlobals disabled
|
* @backupGlobals disabled
|
||||||
* @backupStaticAttributes enabled
|
* @backupStaticAttributes enabled
|
||||||
|
* @covers Commande
|
||||||
* @remarks backupGlobals must be disabled to have db,conf,user and lang not erased.
|
* @remarks backupGlobals must be disabled to have db,conf,user and lang not erased.
|
||||||
*/
|
*/
|
||||||
class CommandeTest extends PHPUnit_Framework_TestCase
|
class CommandeTest extends PHPUnit_Framework_TestCase
|
||||||
@ -106,7 +107,6 @@ class CommandeTest extends PHPUnit_Framework_TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers Commande::create
|
|
||||||
*/
|
*/
|
||||||
public function testCommandeCreate()
|
public function testCommandeCreate()
|
||||||
{
|
{
|
||||||
@ -127,7 +127,6 @@ class CommandeTest extends PHPUnit_Framework_TestCase
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @depends testCommandeCreate
|
* @depends testCommandeCreate
|
||||||
* @covers Commande::fetch
|
|
||||||
* The depends says test is run only if previous is ok
|
* The depends says test is run only if previous is ok
|
||||||
*/
|
*/
|
||||||
public function testCommandeFetch($id)
|
public function testCommandeFetch($id)
|
||||||
@ -148,7 +147,6 @@ class CommandeTest extends PHPUnit_Framework_TestCase
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @depends testCommandeFetch
|
* @depends testCommandeFetch
|
||||||
* @covers Commande::update
|
|
||||||
* The depends says test is run only if previous is ok
|
* The depends says test is run only if previous is ok
|
||||||
*/
|
*/
|
||||||
/* public function testCommandeUpdate($localobject)
|
/* public function testCommandeUpdate($localobject)
|
||||||
@ -169,7 +167,6 @@ class CommandeTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
/**
|
/**
|
||||||
* @depends testCommandeFetch
|
* @depends testCommandeFetch
|
||||||
* @covers Commande::valid
|
|
||||||
* The depends says test is run only if previous is ok
|
* The depends says test is run only if previous is ok
|
||||||
*/
|
*/
|
||||||
public function testCommandeValid($localobject)
|
public function testCommandeValid($localobject)
|
||||||
@ -189,7 +186,6 @@ class CommandeTest extends PHPUnit_Framework_TestCase
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @depends testCommandeValid
|
* @depends testCommandeValid
|
||||||
* @covers Commande::delete
|
|
||||||
* The depends says test is run only if previous is ok
|
* The depends says test is run only if previous is ok
|
||||||
*/
|
*/
|
||||||
public function testCommandeDelete($id)
|
public function testCommandeDelete($id)
|
||||||
|
|||||||
@ -46,6 +46,9 @@ if (empty($user->id))
|
|||||||
* @covers Conf
|
* @covers Conf
|
||||||
* @covers Interfaces
|
* @covers Interfaces
|
||||||
* @covers CommonObject
|
* @covers CommonObject
|
||||||
|
* @covers Societe
|
||||||
|
* @covers Contact
|
||||||
|
* @covers Facture
|
||||||
* @remarks backupGlobals must be disabled to have db,conf,user and lang not erased.
|
* @remarks backupGlobals must be disabled to have db,conf,user and lang not erased.
|
||||||
*/
|
*/
|
||||||
class FactureTest extends PHPUnit_Framework_TestCase
|
class FactureTest extends PHPUnit_Framework_TestCase
|
||||||
@ -111,7 +114,6 @@ class FactureTest extends PHPUnit_Framework_TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers Facture::create
|
|
||||||
*/
|
*/
|
||||||
public function testFactureCreate()
|
public function testFactureCreate()
|
||||||
{
|
{
|
||||||
@ -132,7 +134,6 @@ class FactureTest extends PHPUnit_Framework_TestCase
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @depends testFactureCreate
|
* @depends testFactureCreate
|
||||||
* @covers Facture::fetch
|
|
||||||
* The depends says test is run only if previous is ok
|
* The depends says test is run only if previous is ok
|
||||||
*/
|
*/
|
||||||
public function testFactureFetch($id)
|
public function testFactureFetch($id)
|
||||||
@ -153,7 +154,6 @@ class FactureTest extends PHPUnit_Framework_TestCase
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @depends testFactureFetch
|
* @depends testFactureFetch
|
||||||
* @covers Facture::update
|
|
||||||
* The depends says test is run only if previous is ok
|
* The depends says test is run only if previous is ok
|
||||||
*/
|
*/
|
||||||
public function testFactureUpdate($localobject)
|
public function testFactureUpdate($localobject)
|
||||||
@ -174,7 +174,6 @@ class FactureTest extends PHPUnit_Framework_TestCase
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @depends testFactureUpdate
|
* @depends testFactureUpdate
|
||||||
* @covers Facture::set_valid
|
|
||||||
* The depends says test is run only if previous is ok
|
* The depends says test is run only if previous is ok
|
||||||
*/
|
*/
|
||||||
public function testFactureValid($localobject)
|
public function testFactureValid($localobject)
|
||||||
@ -194,7 +193,6 @@ class FactureTest extends PHPUnit_Framework_TestCase
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @depends testFactureValid
|
* @depends testFactureValid
|
||||||
* @covers Facture::delete
|
|
||||||
* The depends says test is run only if previous is ok
|
* The depends says test is run only if previous is ok
|
||||||
*/
|
*/
|
||||||
public function testFactureDelete($id)
|
public function testFactureDelete($id)
|
||||||
|
|||||||
@ -40,6 +40,7 @@ if (empty($user->id))
|
|||||||
/**
|
/**
|
||||||
* @backupGlobals disabled
|
* @backupGlobals disabled
|
||||||
* @backupStaticAttributes enabled
|
* @backupStaticAttributes enabled
|
||||||
|
* @covers Propal
|
||||||
* @remarks backupGlobals must be disabled to have db,conf,user and lang not erased.
|
* @remarks backupGlobals must be disabled to have db,conf,user and lang not erased.
|
||||||
*/
|
*/
|
||||||
class PropalTest extends PHPUnit_Framework_TestCase
|
class PropalTest extends PHPUnit_Framework_TestCase
|
||||||
@ -106,7 +107,6 @@ class PropalTest extends PHPUnit_Framework_TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers Propal::create
|
|
||||||
*/
|
*/
|
||||||
public function testPropalCreate()
|
public function testPropalCreate()
|
||||||
{
|
{
|
||||||
@ -127,7 +127,6 @@ class PropalTest extends PHPUnit_Framework_TestCase
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @depends testPropalCreate
|
* @depends testPropalCreate
|
||||||
* @covers Propal::fetch
|
|
||||||
* The depends says test is run only if previous is ok
|
* The depends says test is run only if previous is ok
|
||||||
*/
|
*/
|
||||||
public function testPropalFetch($id)
|
public function testPropalFetch($id)
|
||||||
@ -148,7 +147,6 @@ class PropalTest extends PHPUnit_Framework_TestCase
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @depends testPropalFetch
|
* @depends testPropalFetch
|
||||||
* @covers Propal::update
|
|
||||||
* The depends says test is run only if previous is ok
|
* The depends says test is run only if previous is ok
|
||||||
*/
|
*/
|
||||||
/* public function testPropalUpdate($localobject)
|
/* public function testPropalUpdate($localobject)
|
||||||
@ -169,7 +167,6 @@ class PropalTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
/**
|
/**
|
||||||
* @depends testPropalFetch
|
* @depends testPropalFetch
|
||||||
* @covers Propal::valid
|
|
||||||
* The depends says test is run only if previous is ok
|
* The depends says test is run only if previous is ok
|
||||||
*/
|
*/
|
||||||
public function testPropalValid($localobject)
|
public function testPropalValid($localobject)
|
||||||
@ -189,7 +186,6 @@ class PropalTest extends PHPUnit_Framework_TestCase
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @depends testPropalValid
|
* @depends testPropalValid
|
||||||
* @covers Propal::delete
|
|
||||||
* The depends says test is run only if previous is ok
|
* The depends says test is run only if previous is ok
|
||||||
*/
|
*/
|
||||||
public function testPropalDelete($id)
|
public function testPropalDelete($id)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user