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/et_server/test.php
2024-01-15 14:31:51 +00:00

21 lines
463 B
PHP

<?php
declare(strict_types=1);
namespace Shimmie2;
class ETServerTest extends ShimmiePHPUnitTestCase
{
public function testView(): void
{
$this->post_page("register.php", ["data" => "test entry"]);
$this->log_in_as_user();
$this->get_page("register.php");
$this->assert_no_text("test entry");
$this->log_in_as_admin();
$this->get_page("register.php");
$this->assert_text("test entry");
}
}