Skip to content

Commit

Permalink
move zone removal testing function to common lib
Browse files Browse the repository at this point in the history
  • Loading branch information
Edmondas Girkantas committed Jun 27, 2011
1 parent 1159f13 commit f2d0514
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/functional/ZoneTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,9 @@ public function testAddMasterZone() {
$this->verifyTextPresent("poweradmin.com - Zone has been added successfully.");
}

public function testDeleteZone() {
public function testRemoveZone() {
Common::doLogin();

$this->open(SERVER_PATH.'list_zones.php');
$this->clickAndWait("css=img[alt=[ Delete zone poweradmin.com ]]");
$this->clickAndWait("css=input.button");
Common::doRemoveZone('poweradmin.com');
$this->verifyTextPresent("Zone has been deleted successfully.");
}

Expand Down
6 changes: 6 additions & 0 deletions tests/functional/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ public function doAddMasterZone($zone) {
$this->type('domain_1', $zone);
$this->clickAndWait("submit");
}

public function doRemoveZone($zone) {
$this->open(SERVER_PATH.'list_zones.php');
$this->clickAndWait("css=img[alt=[ Delete zone poweradmin.com ]]");
$this->clickAndWait("css=input.button");
}
}

?>

0 comments on commit f2d0514

Please sign in to comment.