2021-12-14 18:32:47 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
2023-01-10 22:44:09 +00:00
|
|
|
|
|
|
|
namespace Shimmie2;
|
|
|
|
|
2021-01-16 21:06:01 +00:00
|
|
|
class UserConfigTest extends ShimmiePHPUnitTestCase
|
|
|
|
{
|
|
|
|
private const OPTIONS_BLOCK_TITLE = "User Options";
|
|
|
|
|
|
|
|
public function testUserConfigPage()
|
|
|
|
{
|
|
|
|
$this->get_page('user_config');
|
|
|
|
$this->assert_title("Permission Denied");
|
|
|
|
$this->assert_no_text(self::OPTIONS_BLOCK_TITLE);
|
|
|
|
|
|
|
|
$this->log_in_as_user();
|
|
|
|
$this->get_page('user_config');
|
|
|
|
$this->assert_title(self::OPTIONS_BLOCK_TITLE);
|
|
|
|
$this->log_out();
|
|
|
|
}
|
|
|
|
}
|