2020-01-26 13:19:35 +00:00
|
|
|
<?php declare(strict_types=1);
|
2019-05-28 17:59:38 +01:00
|
|
|
class ExtManagerTest extends ShimmiePHPUnitTestCase
|
|
|
|
{
|
|
|
|
public function testAuth()
|
|
|
|
{
|
|
|
|
$this->get_page('ext_manager');
|
|
|
|
$this->assert_title("Extensions");
|
2008-10-18 06:40:12 +00:00
|
|
|
|
2019-05-28 17:59:38 +01:00
|
|
|
$this->get_page('ext_doc');
|
|
|
|
$this->assert_title("Extensions");
|
2010-02-27 02:41:10 +00:00
|
|
|
|
2019-05-28 17:59:38 +01:00
|
|
|
$this->get_page('ext_doc/ext_manager');
|
|
|
|
$this->assert_title("Documentation for Extension Manager");
|
|
|
|
$this->assert_text("view a list of all extensions");
|
2010-02-27 02:41:10 +00:00
|
|
|
|
2019-05-28 17:59:38 +01:00
|
|
|
# test author without email
|
|
|
|
$this->get_page('ext_doc/user');
|
2010-03-12 18:44:14 +00:00
|
|
|
|
2019-05-28 17:59:38 +01:00
|
|
|
$this->log_in_as_admin();
|
|
|
|
$this->get_page('ext_manager');
|
|
|
|
$this->assert_title("Extensions");
|
|
|
|
//$this->assert_text("SimpleTest integration"); // FIXME: something which still exists
|
|
|
|
$this->log_out();
|
2009-07-20 06:51:36 +01:00
|
|
|
|
2019-05-28 17:59:38 +01:00
|
|
|
# FIXME: test that some extensions can be added and removed? :S
|
|
|
|
}
|
2008-10-18 06:40:12 +00:00
|
|
|
}
|