| Total Complexity | 3 |
| Total Lines | 52 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | class OpClassTest extends PreconditionSet |
||
| 21 | {
|
||
| 22 | /** |
||
| 23 | * Set up the precondition. |
||
| 24 | */ |
||
| 25 | function setUp() |
||
| 26 | {
|
||
| 27 | global $webUrl; |
||
| 28 | global $SUPER_USER_NAME; |
||
| 29 | global $SUPER_USER_PASSWORD; |
||
| 30 | |||
| 31 | // Login the system. |
||
| 32 | $this->login($SUPER_USER_NAME, $SUPER_USER_PASSWORD, |
||
| 33 | "$webUrl/login.php"); |
||
| 34 | |||
| 35 | return TRUE; |
||
| 36 | } |
||
| 37 | |||
| 38 | |||
| 39 | /** |
||
| 40 | * Clean up all the result. |
||
| 41 | */ |
||
| 42 | function tearDown() |
||
| 43 | {
|
||
| 44 | // Logout from the system. |
||
| 45 | $this->logout(); |
||
| 46 | |||
| 47 | return TRUE; |
||
| 48 | } |
||
| 49 | |||
| 50 | |||
| 51 | /** |
||
| 52 | * TestCaseID: HBC01 |
||
| 53 | * Browse all the op classes. |
||
| 54 | */ |
||
| 55 | function testBrowseOpClass() |
||
| 56 | {
|
||
| 57 | global $webUrl; |
||
| 58 | global $lang, $SERVER, $DATABASE; |
||
| 59 | |||
| 60 | // Turn to schema "pg_catalog" page. |
||
| 61 | $this->assertTrue($this->get("$webUrl/opclasses.php", array(
|
||
| 62 | 'server' => $SERVER, |
||
| 63 | 'database' => $DATABASE, |
||
| 64 | 'schema' => 'pg_catalog', |
||
| 65 | 'subject' => 'schema')) |
||
| 66 | ); |
||
| 67 | |||
| 68 | // Verify whether all the op classes are displayed. |
||
| 69 | $this->assertTrue($this->assertWantedText($lang['straccessmethod'])); |
||
| 70 | |||
| 71 | return TRUE; |
||
| 72 | } |
||
| 76 |