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/contrib/admin/test.php

25 lines
580 B
PHP
Raw Normal View History

<?php
class AdminPageTest extends ShimmieWebTestCase {
function testAuth() {
$this->get_page('admin');
2009-08-19 00:28:48 +00:00
$this->assert_response(403);
$this->assert_title("Permission Denied");
$this->log_in_as_user();
$this->get_page('admin');
2009-08-19 00:28:48 +00:00
$this->assert_response(403);
$this->assert_title("Permission Denied");
$this->log_out();
$this->log_in_as_admin();
$this->get_page('admin');
2009-08-19 00:28:48 +00:00
$this->assert_title("Admin Tools");
2009-10-08 11:47:44 +00:00
$this->set_field("action", "purge unused tags");
$this->click("Go");
$this->log_out();
2009-07-20 05:51:36 +00:00
# FIXME: make sure the admin tools actually work
}
}
?>