This repository has been archived on 2024-09-05. You can view files and clone it, but cannot push or open issues or pull requests.
shimmie2/ext/pools/test.php

42 lines
947 B
PHP
Raw Normal View History

2009-11-15 05:34:30 +00:00
<?php
2009-11-15 06:23:42 +00:00
class PoolsTest extends ShimmieWebTestCase {
2009-11-15 05:34:30 +00:00
function testPools() {
2009-11-15 06:23:42 +00:00
$this->get_page('pool/list');
2009-11-15 05:34:30 +00:00
$this->assert_title("Pools");
2009-11-15 06:23:42 +00:00
$this->get_page('pool/new');
$this->assert_title("Error");
$this->log_in_as_user();
$this->get_page('pool/list');
2010-05-04 19:10:37 +00:00
$this->click("Create Pool");
2009-11-15 06:23:42 +00:00
$this->assert_title("Create Pool");
$this->click("Create");
$this->assert_title("Error");
$this->get_page('pool/new');
$this->assert_title("Create Pool");
$this->set_field("title", "Test Pool Title");
$this->set_field("description", "Test pool description");
$this->click("Create");
$this->assert_title("Pool: Test Pool Title");
$this->log_out();
$this->log_in_as_admin();
$this->get_page('pool/list');
$this->click("Test Pool Title");
$this->assert_title("Pool: Test Pool Title");
2010-05-04 19:10:37 +00:00
$this->click("Delete Pool");
2009-11-15 06:23:42 +00:00
$this->assert_title("Pools");
$this->assert_no_text("Test Pool Title");
$this->log_out();
2009-11-15 05:34:30 +00:00
}
}
?>