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/user_config/test.php
2024-02-11 16:03:23 +00:00

22 lines
508 B
PHP

<?php
declare(strict_types=1);
namespace Shimmie2;
class UserConfigTest extends ShimmiePHPUnitTestCase
{
private const OPTIONS_BLOCK_TITLE = "User Options";
public function testUserConfigPage(): void
{
$this->assertException(PermissionDenied::class, function () {
$this->get_page('user_config');
});
$this->log_in_as_user();
$this->get_page('user_config');
$this->assert_title(self::OPTIONS_BLOCK_TITLE);
$this->log_out();
}
}