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/setup/test.php
shish 98f6800f9d configurable testing URL
git-svn-id: file:///home/shish/svn/shimmie2/trunk@1096 7f39781d-f577-437e-ae19-be835c7a54ca
2008-10-18 10:34:15 +00:00

27 lines
734 B
PHP

<?php
class SetupTest extends WebTestCase {
function testAuth() {
$this->get(TEST_BASE.'/setup');
$this->assertResponse(403);
$this->assertTitle("Permission Denied");
$this->assertText("Login");
$this->setField('user', USER_NAME);
$this->setField('pass', USER_PASS);
$this->click("Log In");
$this->get(TEST_BASE.'/setup');
$this->assertResponse(403);
$this->assertTitle("Permission Denied");
$this->click('Log Out');
$this->assertText("Login");
$this->setField('user', ADMIN_NAME);
$this->setField('pass', ADMIN_PASS);
$this->click("Log In");
$this->get(TEST_BASE.'/setup');
$this->assertTitle("Shimmie Setup");
$this->assertText("General");
$this->click('Log Out');
}
}
?>