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

24 lines
613 B
PHP
Raw Normal View History

<?php
class ExtManagerTest extends SCoreWebTestCase {
function testAuth() {
2010-02-27 02:41:52 +00:00
$this->get_page('ext_manager');
$this->assert_title("Extensions");
2010-02-27 02:41:52 +00:00
$this->get_page('ext_doc');
2010-02-27 02:41:10 +00:00
$this->assert_response(404);
2010-02-27 02:41:52 +00:00
$this->get_page('ext_doc/ext_manager');
2010-02-27 02:41:10 +00:00
$this->assert_title("Documentation for Extension Manager");
$this->assert_text("view a list of all extensions");
$this->log_in_as_admin();
2010-02-27 02:41:52 +00:00
$this->get_page('ext_manager');
2009-08-19 00:28:48 +00:00
$this->assert_title("Extensions");
$this->assert_text("SimpleTest integration");
$this->log_out();
2009-07-20 05:51:36 +00:00
# FIXME: test that some extensions can be added and removed? :S
}
}
?>