2008-10-18 06:40:12 +00:00
|
|
|
<?php
|
2009-07-21 07:36:12 +01:00
|
|
|
class ExtManagerTest extends SCoreWebTestCase {
|
2008-10-18 06:40:12 +00:00
|
|
|
function testAuth() {
|
2010-02-27 02:41:52 +00:00
|
|
|
$this->get_page('ext_manager');
|
2010-01-23 13:20:32 +00:00
|
|
|
$this->assert_title("Extensions");
|
2008-10-18 06:40:12 +00:00
|
|
|
|
2010-02-27 02:41:52 +00:00
|
|
|
$this->get_page('ext_doc');
|
2010-05-04 20:10:37 +01:00
|
|
|
$this->assert_title("Extensions");
|
2010-02-27 02:41:10 +00:00
|
|
|
|
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");
|
|
|
|
|
2010-03-12 18:44:14 +00:00
|
|
|
# test author without email
|
|
|
|
$this->get_page('ext_doc/user');
|
|
|
|
|
2009-07-15 02:42:18 +01:00
|
|
|
$this->log_in_as_admin();
|
2010-02-27 02:41:52 +00:00
|
|
|
$this->get_page('ext_manager');
|
2009-08-19 01:28:48 +01:00
|
|
|
$this->assert_title("Extensions");
|
|
|
|
$this->assert_text("SimpleTest integration");
|
2009-07-15 02:42:18 +01:00
|
|
|
$this->log_out();
|
2009-07-20 06:51:36 +01:00
|
|
|
|
|
|
|
# FIXME: test that some extensions can be added and removed? :S
|
2008-10-18 06:40:12 +00:00
|
|
|
}
|
|
|
|
}
|
2014-04-24 22:34:45 -04:00
|
|
|
|