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

33 lines
890 B
PHP
Raw Normal View History

2021-12-14 18:32:47 +00:00
<?php
declare(strict_types=1);
namespace Shimmie2;
class ExtManagerTest extends ShimmiePHPUnitTestCase
{
2024-01-15 14:31:51 +00:00
public function testAuth(): void
{
$this->get_page('ext_manager');
$this->assert_title("Extensions");
$this->get_page('ext_doc');
$this->assert_title("Extensions");
2010-02-27 02:41:10 +00: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
# test author without email
$this->get_page('ext_doc/user');
2010-03-12 18:44:14 +00: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 05:51:36 +00:00
# FIXME: test that some extensions can be added and removed? :S
}
}