cavepaintingsFork/ext/ext_manager/test.php
2020-01-26 16:27:56 +00:00

28 lines
861 B
PHP

<?php declare(strict_types=1);
class ExtManagerTest extends ShimmiePHPUnitTestCase
{
public function testAuth()
{
$this->get_page('ext_manager');
$this->assert_title("Extensions");
$this->get_page('ext_doc');
$this->assert_title("Extensions");
$this->get_page('ext_doc/ext_manager');
$this->assert_title("Documentation for Extension Manager");
$this->assert_text("view a list of all extensions");
# test author without email
$this->get_page('ext_doc/user');
$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();
# FIXME: test that some extensions can be added and removed? :S
}
}