| Total Complexity | 3 |
| Total Lines | 48 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | class LanguageTest extends PreconditionSet |
||
| 21 | {
|
||
| 22 | /** |
||
| 23 | * Set up the preconditon. |
||
| 24 | */ |
||
| 25 | function setUp() |
||
|
|
|||
| 26 | {
|
||
| 27 | global $webUrl; |
||
| 28 | global $SUPER_USER_NAME; |
||
| 29 | global $SUPER_USER_PASSWORD; |
||
| 30 | |||
| 31 | $this->login($SUPER_USER_NAME, $SUPER_USER_PASSWORD, |
||
| 32 | "$webUrl/login.php"); |
||
| 33 | |||
| 34 | return TRUE; |
||
| 35 | } |
||
| 36 | |||
| 37 | |||
| 38 | /** |
||
| 39 | * Release the relational resource. |
||
| 40 | */ |
||
| 41 | function tearDown() |
||
| 42 | {
|
||
| 43 | // Logout this system. |
||
| 44 | $this->logout(); |
||
| 45 | |||
| 46 | return TRUE; |
||
| 47 | } |
||
| 48 | |||
| 49 | |||
| 50 | /** |
||
| 51 | * TestCaseId: DLD001 |
||
| 52 | * This test is used to test Language Displayed page. |
||
| 53 | */ |
||
| 54 | function testLanguage() |
||
| 68 | } |
||
| 69 | } |
||
| 70 | |||
| 72 |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.