another couple of test sets
git-svn-id: file:///home/shish/svn/shimmie2/trunk@1092 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
parent
f17318921d
commit
5ca37d6009
27
ext/ext_manager/test.php
Normal file
27
ext/ext_manager/test.php
Normal file
@ -0,0 +1,27 @@
|
||||
<?php
|
||||
class ExtManagerTest extends WebTestCase {
|
||||
function testAuth() {
|
||||
$this->get('http://shimmie.shishnet.org/v2/ext_manager');
|
||||
$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('http://shimmie.shishnet.org/v2/ext_manager');
|
||||
$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('http://shimmie.shishnet.org/v2/ext_manager');
|
||||
$this->assertTitle("Extensions");
|
||||
$this->assertText("SimpleTest integration");
|
||||
$this->click('Log Out');
|
||||
}
|
||||
}
|
||||
?>
|
27
ext/setup/test.php
Normal file
27
ext/setup/test.php
Normal file
@ -0,0 +1,27 @@
|
||||
<?php
|
||||
class SetupTest extends WebTestCase {
|
||||
function testAuth() {
|
||||
$this->get('http://shimmie.shishnet.org/v2/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('http://shimmie.shishnet.org/v2/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('http://shimmie.shishnet.org/v2/setup');
|
||||
$this->assertTitle("Shimmie Setup");
|
||||
$this->assertText("General");
|
||||
$this->click('Log Out');
|
||||
}
|
||||
}
|
||||
?>
|
Loading…
x
Reference in New Issue
Block a user