MyObjectTest
class MyObjectTest extends TestCase (View source)
Class MyObjectTest
Properties
| protected Conf | $savconf | ||
| protected User | $savuser | ||
| protected Translate | $savlangs | ||
| protected DoliDB | $savdb |
Methods
__construct(string $name = '')
Constructor We save global variables into local variables
static void
setUpBeforeClass()
Global test setup
void
setUp()
Unit test setup
void
tearDown()
Unit test teardown
static void
tearDownAfterClass()
Global test teardown
bool
testSomething()
A sample test
int
testMyObjectCreate()
testMyObjectCreate
int
testMyObjectDelete(int $id)
testMyObjectDelete
Details
__construct(string $name = '')
Constructor We save global variables into local variables
static void
setUpBeforeClass()
Global test setup
protected void
setUp()
Unit test setup
protected void
tearDown()
Unit test teardown
static void
tearDownAfterClass()
Global test teardown
bool
testSomething()
A sample test
int
testMyObjectCreate()
testMyObjectCreate
int
testMyObjectDelete(int $id)
testMyObjectDelete