| Total Complexity | 3 |
| Total Lines | 51 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | class ProcessesTest extends PreconditionSet |
||
| 20 | {
|
||
| 21 | /** |
||
| 22 | * Set up the preconditon. |
||
| 23 | */ |
||
| 24 | function setUp() |
||
| 25 | {
|
||
| 26 | global $webUrl; |
||
| 27 | global $SUPER_USER_NAME; |
||
| 28 | global $SUPER_USER_PASSWORD; |
||
| 29 | |||
| 30 | $this->login($SUPER_USER_NAME, $SUPER_USER_PASSWORD, |
||
| 31 | "$webUrl/login.php"); |
||
| 32 | |||
| 33 | return TRUE; |
||
| 34 | } |
||
| 35 | |||
| 36 | |||
| 37 | /** |
||
| 38 | * Release the relational resource. |
||
| 39 | */ |
||
| 40 | function tearDown() |
||
| 41 | {
|
||
| 42 | // Logout this system. |
||
| 43 | $this->logout(); |
||
| 44 | |||
| 45 | return TRUE; |
||
| 46 | } |
||
| 47 | |||
| 48 | |||
| 49 | /** |
||
| 50 | * TestCaseId: DPS001 |
||
| 51 | * This test is used to test Processes. |
||
| 52 | * |
||
| 53 | * Note: This sub function is dynamic during the run time. |
||
| 54 | */ |
||
| 55 | function testProcesses() |
||
| 56 | {
|
||
| 57 | global $webUrl; |
||
| 58 | global $lang, $SERVER, $DATABASE; |
||
| 59 | |||
| 60 | $this->assertTrue($this->get("$webUrl/database.php", array(
|
||
| 61 | 'server' => $SERVER, |
||
| 62 | 'database' => $DATABASE, |
||
| 63 | 'subject' => 'database', |
||
| 64 | 'action' => 'processes')) |
||
| 65 | ); |
||
| 66 | |||
| 67 | $this->assertWantedText($lang['strnodata']); |
||
| 68 | |||
| 69 | return TRUE; |
||
| 70 | } |
||
| 74 |