<?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->click('Log Out');
$this->setField('user', ADMIN_NAME);
$this->setField('pass', ADMIN_PASS);
$this->assertTitle("Shimmie Setup");
$this->assertText("General");
}
?>