dolibarr 19.0.4
Dolibarr\test\functional\MyModuleFunctionalTest Class Reference
Inheritance diagram for Dolibarr\test\functional\MyModuleFunctionalTest:
Collaboration diagram for Dolibarr\test\functional\MyModuleFunctionalTest:

Public Member Functions

 setUp ()
 Unit test setup.
 
 testEnableDeveloperMode ()
 Test enabling developer mode.
 
 testModuleEnabled ()
 Test enabling the module.
 
 testConfigurationPage ()
 Test access to the configuration page.
 
 testAboutPage ()
 Test access to the about page.
 
 testAboutPageRendersMarkdownReadme ()
 Test about page is rendering Markdown.
 
 testBoxDeclared ()
 Test box is properly declared.
 
 testTriggerDeclared ()
 Test trigger is properly enabled.
 
 testTriggerEnabled ()
 Test trigger is properly declared.
 
 tearDown ()
 Unit test teardown.
 

Static Public Member Functions

static setUpBeforeClass ()
 Global test setup.
 
static tearDownAfterClass ()
 Global test teardown.
 

Protected Member Functions

 byHref ($value)
 Helper function to select links by href.
 
 assertPreConditions ()
 Verify pre conditions.
 
 assertPostConditions ()
 Verify post conditions.
 

Private Member Functions

 authenticate ()
 Handle Dolibarr authentication.
 

Detailed Description

Definition at line 44 of file MyModuleFunctionalTest.php.

Member Function Documentation

◆ assertPostConditions()

Dolibarr\test\functional\MyModuleFunctionalTest::assertPostConditions ( )
protected

Verify post conditions.

Returns
void

Definition at line 285 of file MyModuleFunctionalTest.php.

◆ assertPreConditions()

Dolibarr\test\functional\MyModuleFunctionalTest::assertPreConditions ( )
protected

Verify pre conditions.

Returns
void

Definition at line 122 of file MyModuleFunctionalTest.php.

◆ authenticate()

◆ byHref()

Dolibarr\test\functional\MyModuleFunctionalTest::byHref ( $value)
protected

Helper function to select links by href.

Parameters
string$valueHref
Returns
mixed Helper string

Definition at line 88 of file MyModuleFunctionalTest.php.

Referenced by Dolibarr\test\functional\MyModuleFunctionalTest\testModuleEnabled().

◆ setUp()

Dolibarr\test\functional\MyModuleFunctionalTest::setUp ( )

Unit test setup.

Returns
void

Definition at line 112 of file MyModuleFunctionalTest.php.

◆ setUpBeforeClass()

static Dolibarr\test\functional\MyModuleFunctionalTest::setUpBeforeClass ( )
static

Global test setup.

Returns
void

Definition at line 104 of file MyModuleFunctionalTest.php.

◆ tearDown()

Dolibarr\test\functional\MyModuleFunctionalTest::tearDown ( )

Unit test teardown.

Returns
void

Definition at line 293 of file MyModuleFunctionalTest.php.

◆ tearDownAfterClass()

static Dolibarr\test\functional\MyModuleFunctionalTest::tearDownAfterClass ( )
static

Global test teardown.

Returns
void

Definition at line 301 of file MyModuleFunctionalTest.php.

◆ testAboutPage()

Dolibarr\test\functional\MyModuleFunctionalTest::testAboutPage ( )

Test access to the about page.

@depends testConfigurationPage

Returns
bool

Definition at line 210 of file MyModuleFunctionalTest.php.

References Dolibarr\test\functional\MyModuleFunctionalTest\authenticate().

◆ testAboutPageRendersMarkdownReadme()

Dolibarr\test\functional\MyModuleFunctionalTest::testAboutPageRendersMarkdownReadme ( )

Test about page is rendering Markdown.

@depends testAboutPage

Returns
bool

Definition at line 223 of file MyModuleFunctionalTest.php.

References Dolibarr\test\functional\MyModuleFunctionalTest\authenticate().

◆ testBoxDeclared()

Dolibarr\test\functional\MyModuleFunctionalTest::testBoxDeclared ( )

Test box is properly declared.

@depends testModuleEnabled

Returns
bool

Definition at line 240 of file MyModuleFunctionalTest.php.

References Dolibarr\test\functional\MyModuleFunctionalTest\authenticate().

◆ testConfigurationPage()

Dolibarr\test\functional\MyModuleFunctionalTest::testConfigurationPage ( )

Test access to the configuration page.

@depends testModuleEnabled

Returns
bool

Definition at line 197 of file MyModuleFunctionalTest.php.

References Dolibarr\test\functional\MyModuleFunctionalTest\authenticate().

◆ testEnableDeveloperMode()

Dolibarr\test\functional\MyModuleFunctionalTest::testEnableDeveloperMode ( )

Test enabling developer mode.

Returns
bool

Definition at line 151 of file MyModuleFunctionalTest.php.

References Dolibarr\test\functional\MyModuleFunctionalTest\authenticate().

◆ testModuleEnabled()

Dolibarr\test\functional\MyModuleFunctionalTest::testModuleEnabled ( )

Test enabling the module.

@depends testEnableDeveloperMode

Returns
bool

Definition at line 171 of file MyModuleFunctionalTest.php.

References Dolibarr\test\functional\MyModuleFunctionalTest\authenticate(), and Dolibarr\test\functional\MyModuleFunctionalTest\byHref().

◆ testTriggerDeclared()

Dolibarr\test\functional\MyModuleFunctionalTest::testTriggerDeclared ( )

Test trigger is properly enabled.

@depends testModuleEnabled

Returns
bool

Definition at line 253 of file MyModuleFunctionalTest.php.

References Dolibarr\test\functional\MyModuleFunctionalTest\authenticate().

◆ testTriggerEnabled()

Dolibarr\test\functional\MyModuleFunctionalTest::testTriggerEnabled ( )

Test trigger is properly declared.

@depends testTriggerDeclared

Returns
bool

Definition at line 270 of file MyModuleFunctionalTest.php.

References Dolibarr\test\functional\MyModuleFunctionalTest\authenticate().


The documentation for this class was generated from the following file: