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

Parameters

string $name Name

static void setUpBeforeClass()

Global test setup

Return Value

void

No return value

protected void setUp()

Unit test setup

Return Value

void

No return value

protected void tearDown()

Unit test teardown

Return Value

void

No return value

static void tearDownAfterClass()

Global test teardown

Return Value

void

No return value

bool testSomething()

A sample test

Return Value

bool

int testMyObjectCreate()

testMyObjectCreate

Return Value

int

int testMyObjectDelete(int $id)

testMyObjectDelete

Parameters

int $id

Id of object

Return Value

int